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

Smartpart with door leaf opened: door thickness dimension

Schlagworte:
  • 2013

Hi!

I'm trying to create a smartpart door, with the door leaf (tuerblatt) opened. Like in makros, when this smartpart door is inserted in diferent openings (öffnungen), it change the dimension of the door thickness. How will be the script to conserve the door thickness?

Thanks a lot!
Xavi

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

Anhänge (2)

Typ: image/jpeg
449-mal heruntergeladen
Größe: 137,85 KiB
Typ: application/octet-stream
1351-mal heruntergeladen
Größe: 384,10 KiB

Hi Xavi,

there are two possibilities to create a Window/Door with SmartParts:

1. Seperate Foils (the Allplan like way)
-------------------------------------------------------------------------
You have to define in the script the same foils, with the same reference points, like
you would do it, if you create a makro with allplan "by Hand"! That means, each part has to be on seperate foil, and the foil reference-points determine the scaling of the part, if the whole element is fit to an opening!
If you do this way, then leave "Aktualisierung der Referenzbox bei Skalierung" unchecked!
Benefit: This SmartPart fit in any rectangular opening without refresh!

2. Without seperate foils
-------------------------------------------------------------------------
If you script without seperate foils, and put all togehter on one foil, then
the SmartPart has to refresh, after you insert it to an opening!
If you do this way, then check "Aktualisierung der Referenzbox bei Skalierung"! (see setting.png)
Then you can insert SmartPart to opening (see insert_in_opening.png)
You have to refresh it afterwards (see refresh.png)!

Regards.

Jörg

Anhänge (3)

Typ: image/png
491-mal heruntergeladen
Größe: 53,57 KiB
Typ: image/png
360-mal heruntergeladen
Größe: 49,45 KiB
Typ: image/png
351-mal heruntergeladen
Größe: 41,42 KiB

..and after the refresh you get the desired result.

Imagine:
At inserting a smartpart to an opening, the smartpart is only scaled, so that it's reference-box is fitted into the opening! No refresh occurs!
While setting reference-points to the foils (with 1.Version from above) during this scaling each foil is scaled a little bit different depending on reference-point-location.

Without seperate foils and reference points, the whole geometry is scaled with the same factors like the refernce-box.
Only at "refresh" of smartpart the new size of the reference-box is calculated, and afterwards the parts are recalculated to this size.
After refresh, the smartpart is no longer scaled!

Regards.

Jörg

Anhänge (1)

Typ: image/png
379-mal heruntergeladen
Größe: 11,48 KiB

Hi Jörg!

Thanks for your fast answer, and for the explanation, is very interesting :-) From several months ago, I tried those two ways to create a smarpart for openings (öffnungen), that you explained before, with diferent results: sometimes works perfect, sometimes works a little maddening.

Smartpart is in the correct way, but need more development and implementations. For example, I think that the smartparts have to be with automatic update when it are inserted in openings (öffnungen), and I know that some others developers have already asked for this smartpart implementation.

I have one other little question, I'm creating a SmartPart with a very silly problem: I can´t do visible a face_style of this smartpart (??????), and I don't know why...

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: application/octet-stream
1367-mal heruntergeladen
Größe: 896,00 KiB

Hi!

Mmmm... I tried several forms to visualize facestyles correctly in smartparts, using the allplan's facestyle (using a new project, without personalized facestyles), but is impossible the view it. Perhaps is it a possible smartpart bug?

Thanks a lot!
Xavi

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

Hi Xavi,

you was on the right way. But
DEFINE FACE_STYLE "tst",fr_fill
was wrong. Remove the comma, and it works:

DEFINE FACE_STYLE "tst" fr_fill
FACE_STYLE "tst"
PUT 0 , 0 , 15 ,
1 , 0 , 15 ,
1 , 1 , 15 ,
0 , 1 , 15
POLY2_ NUM_SP / 3 , 1 + 2 + 4 , GET ( NUM_SP )

Regards.
Jörg

Danke Jörg! Now works perfect! :-D

Regards,
Xavi

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