Pre define layer in this routine

Pre define layer in this routine

Sujan.Maharjan
Collaborator Collaborator
896 Views
4 Replies
Message 1 of 5

Pre define layer in this routine

Sujan.Maharjan
Collaborator
Collaborator

Hi,

I have this routine from http://www.lee-mac.com/dynamicoffset.html 

My knowledge of programming is very less. Please help me pre define Layers and colors of the outcome for this double offset routine.


"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes
897 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Easy way to go is using something that's familiar to you.
With (command "layer") you can use the layer command in lisp you just fill in all info betwean "" each time.

A full line for making a layer and setting it as current would look something like this:

 

(command "layer" "make" "layer name 1" "color" "8" "layer name 1" "")

 

I'm using the make option, if the layer is already there it just makes it current, if not it creates it and makes it current.

 

I'm not sure how you want to implement this in the lisp, if you want user input for the layers you would want to look into "getstring" and how to use it.

 

Hope this helps you, feel free to ask

0 Likes
Message 3 of 5

Sujan.Maharjan
Collaborator
Collaborator

Hi @Anonymous

Thank you for replying. How do I set the resulting output in that layer?

I am on Autocad 2017. This program sometimes freezes and crashes Autocad while entering value. Is there any solution?

 


"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes
Message 4 of 5

Anonymous
Not applicable

Just checked the options on Lee mac's site for this lisp and it seems there is already something in place to set layers (pres S after selecting objects) .

I am having no crashes or freeze's on Autocad 2016 however my knowledge on vl is not sufficient to start looking for a solution. Hope someone els comes along to help you. Sorry

 

0 Likes
Message 5 of 5

Sujan.Maharjan
Collaborator
Collaborator

Hi,

I believe that you can help me define output layer so that I dont have to setup everytime I start autocad? 


"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes