Read SketchBlock Description

Read SketchBlock Description

Maxim-CADman77
Advisor Advisor
324 Views
1 Reply
Message 1 of 2

Read SketchBlock Description

Maxim-CADman77
Advisor
Advisor

It is recomended to use Blocks when building a skeletal 3Dmodel and alike parts.

During Block creation user can fill values of the two textual properties (Name and Description).
AFAIK one of generic Inventor principles is parametrization which means all values user sets he/she can change later.

But I don't see how to edit (or at least read) those two block property values through UI after user closes the "Create Block" dialog window.

I've found that Name is available through API like this:

MsgBox(ThisDoc.Document.ComponentDefinition.SketchBlockDefinitions(1).Name)

But I don't see how to get the value of the Description (the only property mentioned in API help I think may have a relation to it is AttributeSets, but all blocks I've created return 0 as AttributeSets.Count).

How can I read the Block Description value?

 

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
325 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support

@Maxim-CADman77,

 

Unfortunately, Inventor API does not have API to get Description of SketchBlockDefintion. Please log this wish list at idea station using below link.

 

https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes