idslk
Alibre Super User
Hello,
is there anybody out there who can tell me how to use things like the following correctly:
I'm running a german installation and there the "XY-Plane" is named "XY-Ebene".
Every "English-Script" which i tried up to now failed here.
I had to do little adaptions also i'm not able to test if my scripts will run not only on my computer...
I hope there is a better way then this little workaround for german and english.
Something like this should work. After the definition XYPlane can be used as the PlaneName for origin planes.
Please let me know if you have a solution.
Thanks in advance
Stefan
is there anybody out there who can tell me how to use things like the following correctly:
I'm running a german installation and there the "XY-Plane" is named "XY-Ebene".
Every "English-Script" which i tried up to now failed here.
I had to do little adaptions also i'm not able to test if my scripts will run not only on my computer...
I hope there is a better way then this little workaround for german and english.
Something like this should work. After the definition XYPlane can be used as the PlaneName for origin planes.
Code:
CP = CurrentPart()
try:
CP.GetPlane('XY-Ebene')
print 'Deutsch'
XYPlane = 'XY-Ebene'
YZPlane = 'YZ-Ebene'
ZXPlane = 'ZX-Ebene'
except:
CP.GetPlane('YX-Plane')
print 'English'
XYPlane = 'XY-Plane'
YZPlane = 'YZ-Plane'
ZXPlane = 'ZX-Plane'
Thanks in advance
Stefan