- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone, I have a couple of blocks that I use quite frequently, therefore I want to create a LISP command that inserts block by defining att values and custom parameters (position x1, y1, angle1 etc.) as constants.
As you can see in figure1, for example, I want to insert my BLOCK1 with (numbers are just for example, of course)=>
Rotation=0
Scale=1
Base Point= @(0, -10)
Repeat= YES
Custom:
Angle1=0, Angle2:0,
Position1X= 9, Position1Y : 3
Position2X= 0, Position2Y : 53.5
Position3X=20, Position3Y : 20
Position4X=10, Position4Y : 10
Attributes:
TAG10=VALUE10
TAG9=VALUE9
TAG8=VALUE8
TAG7=VALUE7
TAG6=VALUE6
TAG5=VALUE5
TAG4=VALUE4
TAG3=VALUE3
TAG2=VALUE2
TAG1=VALUE1
as constants. Of course, after one example, I'll define them for each of my block and case.
I want to define these attributes and custom parameters for a single block insertion, not want to change all BLOCK1 attributes and custom parameters. Right now, I'm only use these kinds of simple commands:
(defun c:INS123()
(command "-insert" "BLOCK1" "B" "0, -10" "S" "1" "R" "180" "RE" "Y"))
If you can help me, that would be amazing. Thanks for your attention.
Solved! Go to Solution.