dan_g8 Posted September 14, 2016 Share Posted September 14, 2016 Hi, i am trying to insert a dynamic block into my drawing and update a linear parameter inside it? can someone please point me in the right direction how to do this? i am putting the block in with the following code: ^C^C_.-insert;"C:/customtools/blockitem036.dwg";\;1;1;0; I presumed that i would be prompted for the value ..... i was wrong . the linear parameter is called distance1 and it is attached to a scale action. thanks Quote Link to comment Share on other sites More sharing options...
steven-g Posted September 14, 2016 Share Posted September 14, 2016 Unfortunately, it's not possible, I think you can set parameters if you use lisp, but not from a script or macro, I use LT so can't help with any of the lisp options, one thing option that might help, if you want the same setting every time you could insert the block into a master drawing set it's parameters as required and use that block and drag it onto the toolpallette, this is fine if you only need a couple of preset options, but beyond that it will require lisp, or possibly one of the other programming languages available in full Autocad. Quote Link to comment Share on other sites More sharing options...
dan_g8 Posted September 15, 2016 Author Share Posted September 15, 2016 thanks for the replay Steve, i feared that may be the case... ill have to try and work out a work around. unfortunately my office is going from full autocad down to lt so im in the process of converting my vb.net tools into diesel/macros/scripts. Quote Link to comment Share on other sites More sharing options...
steven-g Posted September 15, 2016 Share Posted September 15, 2016 You can get quite a lot done in LT, especially if you can learn diesel, but there are some serious limitations. One of you most usefull aides would be using LT inconjunction with excel. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 16, 2016 Share Posted September 16, 2016 dan_g8 why not got to Briscad etc whilst not my area of expertise pretty sure supports .NET and Lisp and is cheaper than LT. I am still waiting for you steven-g to go to the dark side and use an alternative product. Back to post steven-g can you populate "Properties" for last entity then fill in dynamic parameters there. Answered my own question Select Last ;; then edit properties. Quote Link to comment Share on other sites More sharing options...
steven-g Posted September 16, 2016 Share Posted September 16, 2016 I am still waiting for you steven-g to go to the dark side and use an alternative product. Never I'm having too much fun with LT. I keep threatening to go live with my web site, one day it will happen. Back to post steven-g can you populate "Properties" for last entity then fill in dynamic parameters there. Answered my own question Select Last ;; then edit properties. The only way to edit the properties of a dynamic block that I can find is in the properties palette, and not at the command line. Am I missing a different command ? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 16, 2016 Share Posted September 16, 2016 Steven-g I tried, Select last with the properties box open and the dynamic block I just inserted details were still in the properties box so could enter the dynamic attributes. Add to macro as last step ? Quote Link to comment Share on other sites More sharing options...
steven-g Posted September 16, 2016 Share Posted September 16, 2016 BIGAL, I don't get it?? indeed you can select a dynamic block with a macro, and the properties show in the properties palette, but there is no way from the command line to access the dynamic properties from within a macro, at least not in Autocad LT that I can find, I believe that the action recorder does let you do a bit more but it isn't available in LT (at least not in 2013), the properties command is very limited in which properties can be altered. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 16, 2016 Share Posted September 16, 2016 You are right Steven-g the op wants to just add a value on the end of the macro and LT will not do it, hence the thought of at least selecting the "last" item and using properties that exposes the current dynamic values. I hope don't have LT. Just a couple of clicks saved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.