Trying to extract attributes from complex blocks

Trying to extract attributes from complex blocks

Gorra
Advocate Advocate
328 Views
3 Replies
Message 1 of 4

Trying to extract attributes from complex blocks

Gorra
Advocate
Advocate

I have gotten a few great scripts here that have been quite helpful, and modified some. I've hit a snag I don't know what to do with, though. When I try to run some scripts on blocks that have rotational grips, nothing happens. There's no error message, it just doesn't return anything. 

Grips.png

 

 I'm trying to extract attributes (just the coordinates for now) using this:

Code.png

a modified copy of one I got from @ronjonp. I'm not sure if it's actually the extended grips to blame, but I can drop any other blocknames into the appropriate places and extract the attributes I need. 

 

Thanks,

Gorra

 

 

0 Likes
329 Views
3 Replies
Replies (3)
Message 2 of 4

Kent1Cooper
Consultant
Consultant

Things like coordinates of insertion points, rotation angles, etc. are not Attributes.  That word applied to components of Blocks to which you can assign text values.  I think you want properties, not attributes.  There are different ways to get them -- extracted from entity data, pulled as VLA properties, with the (getpropertyvalue) function.  I doubt the coordinates of the rotational grip are available, but the rotation angle certainly is.

Kent Cooper, AIA
0 Likes
Message 3 of 4

Sea-Haven
Mentor
Mentor

Looks like a Dynamic block and like Kent you can get the current property settings. Including insertion point.

 

Post dwg can provide some examples then.

0 Likes
Message 4 of 4

Gorra
Advocate
Advocate

Thanks for the correction. Sorry for not responding, I got pulled into a different project. Now that I've found out that dynamic blocks need to be treated completely different than regular blocks, my question is essentially moot. I'll just have to rebuild the script accordingly.

0 Likes