Hi all,
I am trying to create a dynamic block which when inserted by its base point prompt the user for a distance the item (this case a brachet) is to be apart from the basepoint point.
I have an example drawing but cant get the block to work at best the item (which by default is placed 300mm from the baseboint) will add the new distance to the allready existing vale rather then become the new distance total (so if the usser enters 100 the new distance between basepoint and item will be 400) what I want is that the new distance would be 100???
Attached is a sample of the block could anyone please explain what Im doing wrong?
Please correct me if Im wrong. So you basically want to change this distance? (See Attachment) Or am I understanding you incorrectly
Is this what you are looking for?
There is no option for Autocad to prompt value of parameter upon insertion.
But you can change the value when you drag the grip.
am trying to create a dynamic block which when inserted by its base point prompt the user for a distance the item (this case a brachet) is to be apart from the basepoint point.
Just pointing out that what OP said isn't possible.
How about inserting an attribute in the parameters so when he inserts the block the Attribute dialog would appear requesting a value
I don't know of a way to prompt for values, but you could work around that and prompt for a value, and use that value in a macro to move the block,
^C^Csetenv;choose;\insert;BlockName;\1;1;0;m;l;;0,0;$M=$(getenv,choose),0
this will prompt for a value, then insert the block and move it by the amount entered, you may need to adjust the macro as it uses the insert settings that I have set up. It would probably be possible using LISP as well, but it isn't possible to get a block to prompt for dynamic input at insertion.
An attribute to control a parameter is not possible, you can use a block property tablet to display an attribute based on the value of a parameter, but not the other way around.