What's new

Set Property Documentation

Cator

Senior Member
Hello, I figured out how to set the color with the script ... How can I set the properties ?? Materials CreatedBy, Mass, ExtimatedCost etc.??
Regard
Francesco
 

Attachments

  • Fca.py
    529 bytes · Views: 5

idslk

Alibre Super User
Hello Francesco,

please don't get me wrong, i hope you had found the "Script-Help"...
otherwise:
upload_2021-2-16_15-50-1.png

A simple sample

Code:
#Sets the part
MyPart = CurrentPart()
#Sets the EstimatedCost of that part
MyPart.EstimatedCost = '100 Space dollar'
#Prints the Cost
print 'Cost: ',MyPart.EstimatedCost

Regards
Stefan
 

Cator

Senior Member
Stefan,
thank you very much for the directions !! I had found the Script_ help but just in the absence of an explicit example I struggled to apply it to my part ... so thank you very much! Unfortunately, the previous answer refers to a script that does not work in the V22 version .... By chance you updated it in the meantime? You are really very kind and I congratulate all those who work on developing this project. beginners like me ... there are but they are few and should refer to more functions and potentialities that this combination of script and CAD is capable of expressing.
Regards
Francesco
 
Top