- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all.
First of all: I have no experience whatsoever using Autolisp.
I have a question concerning a potential lisp routine that could greatly speed up my work. I have to resort to lisp because VBA/other options are unavailable to my in my current job.
I very often need to position certain blocks relative to eachother in identical ways.
Imagine having drawn 15 bolts, all rotated differently, and having to add washers to them. All the washers are positioned relative to the bolt blocks in the same way.
Right now my options are the Mocoro command and the Align command. I'm just doing this so many times a day (100+ times) that I think a faster command is worth it.
(the specifics of why I can't just add the washers to the block itself dynamically would lead me too far)
Tekla Structures has this incredibly useful function called 'copy from object to object'. i'm looking to recreate that here.
So basically I want to do this:
Can anyone help me out? I can do the arithmetic of transforming the block coordinates and rotation myself but the code to select/manipulate block properties is beyond me.
If anyone can help me on the way with sample code to select blocks, get properties from a block, and copy blocks, I think I can already figure out the rest.
Extra bonus points:
-if there is a possibility of skipping the first select if I already have something selected upon activating the command
-if I can continue selecting destination blocks without ending the command
Thank you very much to anyone who can point me in the right direction.
Kasper
Best regards
Kasper Wuyts
_______________________________________________________________________________
If this post solves your problem, clicking the 'accept as solution' button would be greatly appreciated.
Solved! Go to Solution.