Jump to content
Developer Wiki and Function Reference Links ×

Multiple VectorScript LayerRef functions, layers with different Z, result at same Z


Bill

Recommended Posts

With v10.5.0 on windows 2000, I created a new drawing

- layer-1 with z=0 and delta z = 8'

- layer-2 with z=8' and delta z = 8'

- drew a wall on each layer

- created a layer named 'LayerLink by Menu'

- and used View, Create Layer Link to link layer-1 & 2.

- View, Standard Views, Front shows the walls at the appropriate different heights.

I then created a vectorscript:

code:

Procedure TestLayerRef;

Begin

LayerRef('layer-1');

LayerRef('layer-2');

End;

run (TestLayerRef);
[/code]

- created a new layer named 'LayerLink by VectorScript'

- made sure that was the active layer

- ran the TestLayerRef script

- this time, View, Standard Views, Front shows the walls at the same height.

I wrote a little script to list info about the various objects on the layers. Each layer linked object has the correct souce layer name.

Question

Is the LayerRef function supposed to do the same thing as the menu command (ignoring projecting of 2D objects)?

Link to comment

quote:

Originally posted by Fozz:

Question

Is the LayerRef function supposed to do the same thing as the menu command (ignoring projecting of 2D objects)?

Hi Fozz,

The menu command creates a LayerRef link object (like the LayerRef procedure) then, afterwards, it moves up each LayerRef object according to the Z information of the layer it references (and locks them). Remember the LayerLink Zs are not updated automatically if you change a Layer Z after it was created...

If you add a move and lock procedure to your script you'll be able to mimic the menu command.

HTH

[ 01-08-2004, 06:24 AM: Message edited by: Alexandre B A Villares ]

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...