
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create my own lisp (which should be simple) that basically just streamlines a repetitive process for me instead of me manually doing it several times. I have only been able to get a little less than halfway through it performing the way I want. So just a little about what im trying to do is I am simply adding visibility states to a current dynamic block(simply put). Again, for the most part I want this to be automatic with only one or two steps requiring user input. here are the steps I am looking to achieve which should be pretty simple I thought:
1. open block editor for currently selected block -got it
2. activate creation of new visibility state requiring user to name state. - this is where im stuck. it opens and asks for me to name new state but aftwerwards wants me to pick one of the three options [hide all/show all/current visibility]. I want this to be automatic so rest of the code works
3. paste newly copied block into visibility state - got it
4. close the block - got it
With my intent in mind here is the code so far:
(defun c:AD ()
(command"bedit")
(command"bvstate""new"getkword"h") <------- this is the part that wont function the way I want. The "h" at the end will not function automatically
(command"pasteclip""0,0"
(command"bclose")
(princ)
)
Something is not right in the second line and I cannot move to the third line until it is fixed. Ive tried adding parenthesis in different places, adding brackets, etc. I need help!
Solved! Go to Solution.