[TS7] Get element property

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, jacs, Daniel

gmanucci
Master Corporal
Master Corporal
Posts: 49
Joined: Tue Sep 29, 2015 2:48 pm
TopSolid Module: TopSolid'Cam
TopSolid Version: 6.26

[TS7] Get element property

Unread post by gmanucci »

Hi!

I haven't found any information about IElements.GetPropertyRealValue(inElement, inProperty) for how to get a value from this element.

I've found that when a project is open, it enables an "OpenPackage" menu that shows many properties and its IDs.

Image

I tried with these ids but no success.

Does someone know something about it?

Thanks in advance,
User avatar
JuP
Major
Major
Posts: 169
Joined: Tue Sep 09, 2014 5:45 pm
Answers: 6
TopSolid Module: TopSolid'Steel
TopSolid Version: 7.14

Re: [TS7] Get element property

Unread post by JuP »

Hello,

Do you want use that to get document properties or it's to get parameters (in a document) ?
Julien POIROT
TopSolid'Steel Product Manager
Youtube
GrabCad
Facebook
gmanucci
Master Corporal
Master Corporal
Posts: 49
Joined: Tue Sep 29, 2015 2:48 pm
TopSolid Module: TopSolid'Cam
TopSolid Version: 6.26

Re: [TS7] Get element property

Unread post by gmanucci »

Hi,

i want to get a property from a entity (dimension in that case), i opened a TR, and i'll have to talk to Mr. Tiberi ):

Thanks for replying,

BR
User avatar
Rubenpmo
Private
Private
Posts: 4
Joined: Tue Jan 21, 2014 8:15 pm

Re: [TS7] Get element property

Unread post by Rubenpmo »

Hi,

In my last post, I've used:

Code: Select all

double zmax = TopSolidHost.Elements.GetPropertyRealValue(peca, "$TopSolid.Cam.NC.Kernel.DB.Entities.Part.FinishZMax");
where "peca" is an ElementId.

Is this what you want?

BR
Ruben
gmanucci
Master Corporal
Master Corporal
Posts: 49
Joined: Tue Sep 29, 2015 2:48 pm
TopSolid Module: TopSolid'Cam
TopSolid Version: 6.26

Re: [TS7] Get element property

Unread post by gmanucci »

Hi!

Thanks for replying!

No, i want to get a value from a dimension, so i can get all dimensions on the draft for exporting, making controls, etc.

I Tried and the guys said i'll have to ask an enhancement ):

Best Regards,
Post Reply