Message 1 of 19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are trying to program an autolisp to streamline the following sequence of placing blocks on lines using the divide tool.
- Start Divide command
- User Input => Select Line
-Pull the length of the line from the properties tab.
-Divide the length given in the properties tab by 20ft to determine ‘X’, if the line does not evenly divide, round up to the nearest whole number (ex: 44ft divided by 20 = 2.2, we want to round up to 3) This formula in excel was 'Ceiling'. The goal is to have the blocks both evenly spaced and less than or equal to 20ft apart.
- Enter the number of segments or block =>Block
- Enter the name of the block to insert=>SAMPLE
- Align block with object? =>No
- Enter the number of segments =>’X’
- Press Enter
Our end goal would be:
Start our 'New Divide Tool' and select the line to place the blocks automatically.
Solved! Go to Solution.