Das Wissen aller Anwender nutzen

Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.

Es erwarten Sie:

  • Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
  • Tipps von User für User
  • international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch

Melden Sie sich jetzt an und diskutieren Sie mit!

Zur Registrierung

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/

Anhänge (2)

Typ: image/jpeg
435-mal heruntergeladen
Größe: 191,90 KiB
Typ: image/jpeg
402-mal heruntergeladen
Größe: 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/

Anhänge (1)

Typ: image/jpeg
421-mal heruntergeladen
Größe: 247,57 KiB