Using .selection to call user added properties

Aaron Hinz

Using .selection to call user added properties

I'm working on a project to generalize code using .selection. i'm looking to access the user added properties with code similar to:

CATIA.ActiveDocument.Selection.item(1).Value.Name

The field I'm looking to access is a user added field in properties, let's take DESIGNER for example. How would I go about this? Simply replacing Name with DESIGNER yields nothing.

Patrick Voosen

RE: Using .selection to call user added properties
(in response to Aaron Hinz)

Hi Aaron,

 

See this post on scripting4v5 (note, the ampersands aren't parsed correctly). I think it may also help to set the part or product you are selecting to a variable rather than try to access the property all on one line.