Frame_D test

Schlagworte:
  • 2014

Hi!

We are trying to use the new command Frame_D, but we are doing something incorrect, because the geomtry is not created, and it don't appear in preview window of the SmartPart Scripter.

This is the script, I writed in SCRIPT_3D:

!-------------------------------------------------------------
counter = VARDIM1 ( REF_POLY )

IF counter > 2 THEN
FOR i = 1 TO counter
PUT REF_POLY [ i ][ 1 ], REF_POLY [ i ][ 2 ]NEXT i
ELSE
FOR i = 1 TO 5
PUT defpoly [ i ][ 1 ], defpoly [ i ][ 2 ]NEXT i
ENDIF

!FRAME counter , 0.02 , 0.03 , USE ( NUM_SP )
FRAME_D counter , 0.5 , 0.1 , 0.2 , 0.1 , 0.3 , GET ( NUM_SP )

!-------------------------------------------------------------

I post the NDW file, if somebody would review it.

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
1369-mal heruntergeladen
Größe: 384,22 KiB

Hi Xavi,

FRAME_D works similar to PRISM_:

PRISM_ n, h, x1, y1, s1, ... xn, yn, sn

That means , you need 3 values for each point:
-------------------------------------------------------------
counter = VARDIM1 ( REF_POLY )

IF counter > 2 THEN
FOR i = 1 TO counter
PUT REF_POLY [ i ][ 1 ], REF_POLY [ i ][ 2 ], 0
NEXT i
ELSE
FOR i = 1 TO 5
PUT defpoly [ i ][ 1 ], defpoly [ i ][ 2 ], 0
NEXT i
ENDIF

TRANSY ref_y
ROTX 90

FRAME_D counter , -0.1 , -0.15 , -0.2 , -0.15 , REF_Y , GET ( NUM_SP )
-------------------------------------------------------

For offset to inner direction, you need negative Offset values.
To fit into the opening, perform translation and rotation before FRAME_D.

Regards

Jörg

Anhänge (1)

Typ: application/octet-stream
1362-mal heruntergeladen
Größe: 433,93 KiB

The Frame_D command is very, very useful! :-D

Without this order, some geometries only can be created with Boolean operations. This command saves many lines of code!

Thanks Jörg!
Xavi

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

very practical this new feature, thank you.

now the same thing with the plan of roof to generate tiles or frame automatically and it will be perfect

Administrateur forum : Allplan.leforum.eu

http://allplan.leforum.eu

Olivier1

I'm totally agree with you Olivier_1: Allplan needs to have this feature, because there are a lot of allplan tools, that don't have automatic update with "custom planes" or "roof frames", like frame structure, stairs, etc...

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

Hello

without going up to la. (but we like to dream about the next version )
and to return to the smartpart joinery which were well advanced with this latest version Allplan 2014. We are missing some thing as small:

the opportunity to change the height and the width and depth of a window from a smartpart, but also to have the information of the height of the window from the ground (for the automatic annotation window sill, or to set the protections against falls, the bars support of protection etc.).

Nice version allplan 2014! (y)

Administrateur forum : Allplan.leforum.eu

http://allplan.leforum.eu

Olivier1

Hello Olivier,

the SmartPart as a window or door DEPENDS on the opening!
So the Ref-Box of the SmartPart is Fitting into the opening.

Thats why it is not possible to change the dimensions of the Ref-Box.
This Change is ONLY triggered through a Change of the opening.

It's a chicken-and-egg-Problem :-)

Regards.

Jörg