To access regular Alibre parts from AlibreScript I use the following code:
But sometimes I need to access the Alibre sheet metal parts, so I tried to use the following code:
Please note that it changes the part extension somewhere internally, and, of course, it cannot locate the following part because of it. It is just my guess, though.
Question: Is there a workaround? How can I access Alibre sheet metal parts through AlibreScript?
Thank you! =)
My Alibre version is Alibre Design Expert V28, build 28098. If it matters.
It works perfectly fine.part=Part("PathToYourPart","YourPartName.AD_PRT")
But sometimes I need to access the Alibre sheet metal parts, so I tried to use the following code:
But it does not work and throws me the following exception:part=Part("PathToYourPart","YourPartName.AD_SMP")
Exception: The file 'PathToYourPart\YourPartName.AD_PRT' cannot be found.
Please note that it changes the part extension somewhere internally, and, of course, it cannot locate the following part because of it. It is just my guess, though.
Question: Is there a workaround? How can I access Alibre sheet metal parts through AlibreScript?
Thank you! =)
My Alibre version is Alibre Design Expert V28, build 28098. If it matters.