Page 1 of 1

[TS7] Get element property

Posted: Wed Jul 20, 2016 9:49 pm
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,

Re: [TS7] Get element property

Posted: Thu Jul 21, 2016 6:19 am
by JuP
Hello,

Do you want use that to get document properties or it's to get parameters (in a document) ?

Re: [TS7] Get element property

Posted: Wed Aug 24, 2016 6:36 pm
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

Re: [TS7] Get element property

Posted: Wed Aug 24, 2016 7:21 pm
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

Re: [TS7] Get element property

Posted: Mon Aug 29, 2016 10:38 pm
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,