I need some ideas with how to go about a project. We currently have a bunch of Lisp programs to create drawings but I am interested in exploring how I can maybe use Lisp with either dynamic blocks or parametric drawings. I just don't know which would make more sense. Currently we have programs where we enter things like width, height, leg or radius, bars wide and high etc and it creates a drawing like the one I've attached. I know that if I can create this drawing as a dynamic block or a parametric drawing, then when there are revisions, I don't need to create the drawing again. I can just adjust the parameter or the dynamic block. Can anyone give me an idea on what makes the most sense, a dynamic block or a parametric drawing? I should note that I'd still like to use autolisp to create the initial drawing (or insert the block) since that's what the users are used to.
Let me know your thoughts or ideas.
A parametric drawing can be created easily calling commnds from AutoLISP. And the great thing is that you can call AutoLISP from within the Block Editor, this way creating a Block that exposes the dimensional constraints as parameters. I include a tutorial about this in my new book "AutoCAD expert's Visual LISP"
so are you suggesting I use a mixture of parametric contstraints and dynamic blocks? Or are you saying either one would work? I already have an autolisp program that creates the drawing I've shown, but once it's created, it's a static drawing.
So it's easy to use Autolisp to create a parametric drawing? Becuase I have started to create a parametric drawing manually, and although it's not hard, it's taking a lot of time to constrain it properly.
This surface is an example of what I mean. It exposes several custom properties that can be modified.
Under the Properties palette you can change the radius of the different sections.
All has been created through AutoLISP.
Open block editor
Draw a rectangle
Apply geometric constraints with _Autoconstrain
Apply a dimensional constraint with _bcparameter _Linear _Object to the lower horizontal side
Close the block editor saving changes
Insert the block
Use properties to change the value of the d1 property.
Hope this helps,
Makes sense. Thanks.
Now my question is: What is the difference between a horizontal constraint parameter, or a linear parameter? (if that makes sense) and which is easier to create and/or modify using autolisp?
Just as in normal dimensions, Linear can be both horizontal or vertical, depending on the point you select to place the dimension.
Horizontal is always that, the same for Vertical.
So I prefer them to Linear, as I can be sure of what I get, without depending on the point used for placing the constraint.
Is that the only difference? In the block editor, why does linear show up in the parameters tab of the block authoring palette, and the horizontal, vertical, etc show up on the constraints tab? That makes me think they do something different. (This may be an obvious question, but we have recently upgraded from Autocad 2008, so I've got some catching up to do)
Start with some of our most frequented solutions to get help installing your software.