Hello,
is there a way to get the instance number in any form? If i export my attributes in FDS 2016 i get a cell with the instance id. Is there a way to write this in a ipropertie or in a parameter? I need them to show in my BOM.
Regards
We need them to differentiate between the different asset variants (different configurations/parameter etc). To import them in our system we need the instance id to check if this id still exists or not . So we need the ID in the BOM.
The other way would be to customize the way the attributes are exported because this contains an export of the ID.
Is there a way customize the result of property export ? Like an extra gap for user parameter?
So everything in the property export is an iPropertie except the instance id. Thats not good for me 😄 So there really is nothing, no iLogic code or anything to help me with this problem?
Okay.
Another question: What do you mean in post 5?
https://forums.autodesk.com/t5/factory-design-suite-general/fds-api/td-p/4842767
Hi there,
Which FDS version are you using now? I have checked the Properties Export in FDS 2016 and the Instnace ID is included in the Excel report.
Thanks,
-Xuesong
Hi,
I played around with the API and was able to read the asset properties.
But, I tried to change a asset property by using the SetInstanceProperty command.
It seems to work and I can see the new value for this property, but the asset does not update.
Is there any possibility to change the properties of an asset through the API?
Regards Andreas
Hi Oleg,
sorry for the late response.
I tested it with iLogic from the layout document. I tried to duplicate it again and now it works.
AddReference "Autodesk.Factory.PublicAPI" Imports Autodesk.Factory.PublicAPI Dim instances() As Currency.IAssetInstance = API.Instance.GetAssetInstancesFromLayout(ThisDoc.Document) If instances.length > 0 Then Dim asset As Autodesk.Factory.PublicAPI.Currency.IAssetInstance = instances(0) Dim prop1 As Currency.IInstanceProperty = API.Instance.SetInstanceProperty(asset,"Test", 123) MessageBox.Show(prop1.Name & " = " & prop1.Value, "") Else MessageBox.Show("No assets in layout", "") End If
Is there any possibility to modify the asset parameters?
Regards
Andreas
mk92,
Good afternoon! What if you set up some iLogic code to write your own unique ID (as a custom iProperty) on a project by project basis. You could pull in a job code or assembly code from the parent assembly and add that to some simple counting routine. That way any time that you added a different instance of the of the asset, your counter would increase by one. Not super sophisticated, but might be able to help out. Let me know if this would be of some benefit to you. Hope this helps and have a most blessed day!
Peace,
Pete