What's new

Design Properties

pem

Member
Design Properties

Hi

Is there any way to change (using Alibre API of course) part properties like "Material", "Last Author", etc.

I know that I can change "Description" and "Number" using IADDesignSession.DesignProperties.

But what about other values?

Regards
Pem
 

shubhab

Member


Hi,

I am sorry, at this time it's not possible to access any of the properties in the General Tab.
But this has also been requested by our other customers and I see this listed under the enhancements Section of this forum too. We'll keep this in mind when we enhance our API in the future.

Thanks,
Shubha,
Alibre, Inc.
 

shubhab

Member


Hi Pem,

I saw that you added an enhancement request for Configurations in API.
We already have exposed this functionality. You will be able to use this via ADConfigurationLockType , IADConfiguration and IADConfigurations interfaces.
In VB's Object Browser, you will be able to see those interfaces and all their members.
The API Help document hasn't been updated yet to reflect the Design Configurations yet.

Let me know if you have any questions.

Thanks,
Shubha,
Alibre, Inc.
 

cclark440

Alibre Super User


Hello Shubhab

Sorry for my ignorance, but how do you access the configurations?

I am thinking that Configurations would be a member of IADSession.

If that where the case I would expect to access them by the following code or similar (VB);

Code:
Dim adSession as IADSession
Dim adConfig as IADConfiguration

adSession = objRoot.Sessions.Items(1)
adConfig = adSession.Configurations.Items(1)

Am I a completely wrong?
 

shubhab

Member


You can access the configurations on a Deisgn Session, i.e. on IADDesignSession.
You will not be able to access it directly on IADSession.

As an example:

Dim adSession as IADSession
Dim adConfig as IADConfiguration
Dim adDesignSession As IADDesignSession

adSession = objRoot.Sessions.Items(1)
adDesignSession = adSession
adConfig = adDesignSession.Configurations.Items(1)

Let me know if you have more questions.

Thanks,
Shubha
 
Top