Jump to content
Developer Wiki and Function Reference Links ×

Replace 3D loci with a Symbol


Recommended Posts

I have written a small script that selects 3D loci with attached record. Then it will duplicate them in place.

I would like to replace these duplicates with a symbol that has its own class

This is so that the customers and the guys on the job can see the drawing the way they are used to and I don't

Is this possible?

Link to comment

Hi Geoff,

???Rather than replace duplicate 3DLoci, place your symbol at the same location instead. You will need to loop through each 3DLocus and use its XYZ for the symbol placement with Symbol('sym name', X, Y, 0);. Symbols place in X&Y then use a Move3D(0, 0, Z); to raise it up. You'll want to be in TOP view for it to work correctly. If you want the record information to stay attached you'd have to copy the record from the original locus to the symbol just after you place the symbol.

???The smallest code can be achieved by using ForEachObjectInLayer() but you may find it easier to use a WHILE loop to step through the handles of the 3DLoci if you are new to VS.

???Also, did you search the archives for a script? This question has been asked before and I'd be surprised if there isn't something out there.

Raymond

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...