SmartParts: symmetrical polyline with arcs


Hi everybody,

I'm creating a smartparts with polyline with arcs, and I have some troubles because is symmetrical.

In the first aproximation, I create only one polyline with arcs, but the symmetrical arcs aren't equal: the arc 2 isn't equal to arc 8, the arc 3 isn't equal to arc 7, the arc 4 isn't equal to arc 6.

In the second aproximation, I found a solution to resolve it, but I think that isn't the correct option: I create two polylines, and then, I create the arcs exactly equals.

Thanks!
Xavi

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/

Вложения (2)

Type: image/jpeg
Загружено 435 раз
Size: 191,90 KiB
Type: image/jpeg
Загружено 402 раз
Size: 231,99 KiB

Hello

Here's a more simple solution with the "SCALE2" command which allows you to have a simple code and a symmetric function.

good luck.

PUT REF_X / 2 , 0 , 15 ,
0 , 0 , 15 ,
0 , REF_Y - 0.3 , 15 ,
0.04 , REF_Y - .12 , 1000 ,
0.15 , REF_Y - 0.02 , 1000 ,
REF_X / 2 - 0.06 , REF_Y , 1000 ,
REF_X / 2 , REF_Y , 15

POLY2_ NUM_SP / 3 , 1 + 0 + 0 ,
USE ( NUM_SP )

TRANS2 REF_X , 0

SCALE2 -1,0

POLY2_ NUM_SP / 3 , 1 + 0 + 0 ,
GET ( NUM_SP )

Administrateur forum : Allplan.leforum.eu

http://allplan.leforum.eu

Olivier1

Mpm990.. it's a very, very good trick! :-)

Although I still doubt if it's possible create a symmetrical polyline with arches, and the symmetrical arcs are equal.

Thanks a lot!
Xavi

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/

Hi everybody,

I have one other question to optimize the script code. This is my script sample:

FILL fill_col
PUT REF_X / 2 , 0 , 15 ,
0 , 0 , 15 ,
0 , REF_Y - 0.3 , 15 ,
0.04 , REF_Y - 0.12 , 1000 ,
0.15 , REF_Y - 0.02 , 1000 ,
REF_X / 2 - 0.06 , REF_Y , 1000 ,
REF_X / 2 , REF_Y , 15
POLY2_ NUM_SP / 3 , 1 + 0 + 0 , USE ( NUM_SP ) !!!lines 2D
POLY2_ NUM_SP / 3 , 0 + 2 + 4 , GET ( NUM_SP ) !!!Fill 2D

To draw one filled polyline without closing, I had to write the command "POLY2_" twice: one for a not closed polyline, and the other for the filled. How to draw a filled polyline and not closed with only one "POLY2_" command line?

Thanks a lot!
Xavi

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/

Вложения (1)

Type: image/jpeg
Загружено 421 раз
Size: 247,57 KiB

https://campus.allplan.com/ uses cookies  -  More information

Accept