Producing a list of dimensions from a dynamic block

Producing a list of dimensions from a dynamic block

Anonymous
Not applicable
835 Views
4 Replies
Message 1 of 5

Producing a list of dimensions from a dynamic block

Anonymous
Not applicable

Afternoon all.

I'm sure out there in the big wide internet world this has been answered but not knowing the correct phase to search for has meant I cant find that answer.

 

I have a block, a simple rectangle.

It is dynamic in that it has a simple horizontal stretch function.

The standard block is 1000mm long.

 

This block will be used repeatedly dozens, if not hundreds of times in this CAD file and as such there may be lots and lots of various lengths of the block.

 

I have to then produce a lsit of all the different lengths of this block for ordering purposes.

 

To sit there and manually look at each and every block and make a note of it's length is very very inefficient. 

 

Can we somehow get AutoCAD to give me an automatic list of all the various lengths of the block throughout the model.

 

Just to help, based on some issues I found out on what I thought were similar queries/answers on the internet.

1) Using AutoCAD 2018

2) The CAD file will have many xrefs in it

3) The CAD file has many many other types of blocks, dynamic and static.

4) I'm almost useless at AutoCAD 🙂

 

Thanks in advance

 

D

 

 

0 Likes
836 Views
4 Replies
Replies (4)
Message 2 of 5

dlanorh
Advisor
Advisor

What is the effective name of the block.

Does it have any other dynamic properties (visibility states, rotations etc)?

What is the name of the linear parameter that controls the stretch?

Are there specific distances associated with the parameter or is it unlimited?

 

Failing that post a drawing containing the dynamic block (saved as AutoCAD 2012 or earlier for me)

 

I am not one of the robots you're looking for

0 Likes
Message 3 of 5

Sea-Haven
Mentor
Mentor

If you check out Lee-mac.com he has a great get dynamic block properties lisp, it should do what you want return length and width.

 

;; Get Dynamic Block Property Value - Lee Mac
;; Returns the value of a Dynamic Block property (if present)
;; blk - [vla] VLA Dynamic Block Reference object
;; prp - [str] Dynamic Block property name (case-insensitive)

0 Likes
Message 4 of 5

Anonymous
Not applicable

Morning Folks

 

First and foremost apologies for delaying in responding to you but I had a bit of time off work and on my return there was the usual pile of rubbish to contend with.

 

sea.haven - thanks for your reply, I will go nose around that web site a bit later today.

 

Dlanorh - again. thanks for your reply. With regard to your quires i can confirm that:-

- the block is free from all other dynamic properties

- if I've understood your query correctly, it is just a linear parameter stretch and it si Distance 1

- the stretch is limited to 3000mm

 

Hope that helps

 

0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

Its as simple as (LM:getdynpropvalue blk prp )

0 Likes