Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamic block update dimensions/area

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
1667 Views, 7 Replies

Dynamic block update dimensions/area

Hi all,

 

I had a block that I use to indicate cold rooms in the back of house for food shops that we refit.

 

I want to know if there's a way to modify the block so it's dynamic and can be dragged to expand horizontally/vertically while updating the area and length/width measurements?

 

Many thanks in advance!

7 REPLIES 7
Message 2 of 8
Libbya
in reply to: Anonymous

Sure.  There are at least a couple ways.  Add the dynamic parameters/actions to accomplish the desired stretches.  Then add attributes for your text and within the attribute definitions  add the appropriate fields to reference the parameter values for the width/height.  You could also add actual dimensions to the block and stretch them.

Message 3 of 8
Anonymous
in reply to: Libbya

Thanks for your help. I've managed to get the dimensions to show and update (by using the dimension method you mentioned second), but seem to be struggling with getting the area. 

 

Could you possibly explain this in a simpler way? I'm a bit of a beginner when it comes to this.


Thanks.

Message 4 of 8
Anonymous
in reply to: Anonymous

Okay, I have managed to get the width and length dimensions showing and updating when manipulated along either axis. Also added a visibility state to change between sliding and hinged doors.

 

I've been using the FIELD command to get the area displayed but no matter what I seem to do it doesn't show the correct area?

 

I've been using the imp.lsp command to check the measurements and it doesn't seem to correlate with any measurement, imperial or metric.

 

Can anyone explain why this is happening, and point me in the right direction? Thanks.

Message 5 of 8
Libbya
in reply to: Anonymous

If you attach the actual block file I could look at it, but the image tells me very little.  The issue could be as simple as needing to do a regen after updating the dimensions or it could be an incorrectly set up formula field.

Message 6 of 8
Anonymous
in reply to: Libbya

Thanks for getting back to me. I can't seem to attach the block as I'm getting this error message 

 

Correct the highlighted errors and try again.The attachment's coldrooms.dwg content type (application/softgrid-dwg) does not match its file extension and has been removed.

 

Will see if I can link to it another way...

Message 7 of 8
Anonymous
in reply to: Libbya

Will try it as a zip

Message 8 of 8
Libbya
in reply to: Anonymous

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report