Can anyone help me make a LISP for copying an object then rotating it as well with just one command. Attaching a
picture for reference. They need to have different distance with each other. Thanks
.
Hi,
while you waiting for answer,
use arraypath arrayclassic(polar) divide* or measure*
*as object you need a blockreference
Sebastian
This Dynamic block ?
I(*) then click and ENTER, ENTER, etc...
* stands for Classicinsert...
The command MOCORO let's you move, copy, and rotate within the same command.
Try Lee Mac's Align Objects to Curve lisp: https://www.lee-mac.com/objectalign.html
*^c^c_insert;"truc";\;;;
I put that macro in a button and it's terribly efficient. "Truc" is the name of the block (I put "Truc" and not Truc(*), in case, better habit since a name can contain spaces)
Escape to end.
*Thing 🙂
I'm not sure how I would go about it, if in any way different from what has already been suggested. But however it is to be accomplished, there are questions.
What would the User process be? Select a path object to copy along, and select the object? Or objects? [That is, could your triangle be three Lines?] Specify something as the object that isn't already there to select, such as a Block name, and Insert that as part of the process? Be asked to draw something instead of select something? Then what? Pick a starting reference point along the path? Or use the nearest point along the path as the starting reference? Nearest to what on the selected object(s)? And in what form would the varying distances be supplied? Ask the User for each spacing as it goes along? Pull them from something like a list variable or a .csv or .txt file? Specify at least the first copy location on the path itself [not just as a distance number], so the routine knows whether to work in the path's drawn direction or the other way? Etc., etc.
"so the routine knows whether to work in the path's drawn direction or the other way?" picking an end when asked for path can be used to determine direction. Then ask which side.
Maybe use something like type 12,12,14,15,7,8 as distance input.
Need poster to provide more details.
yes, also it looks like the relative angle to the curve is always the same, so it could also be calculated from the first block
Can't find what you're looking for? Ask the community or share your knowledge.