|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
#1
|
||||
|
||||
Material as an attribute/property of a model?
I would like to add material as a property of a model in Modeling, and would like to be able to use this property in Annotator and pass it on the ModelManager where it would be updated to the Masterdata field.
Has anyone done any work like this that they can steer me in the right direction or even share some of their code? I understand Sheet Metal module uses materials, but we don't have that module; maybe I can take advantage of the functionality? Currently in our WorkManager system we have material as a field for the Part record. Material has been assigned a link in Drafting/Anno drawing frames so the drawing shows the material. This work fine most of the time, but one of the biggest drawbacks is that when you change the material it changes it for all revisions of the attached drawings (and we unwittingly didn't set up revisions for Part in WM), so the only way you know what the material used to be is if the revisor did their job well and added it to the changenotes. Moving forward I am trying to get us to more of a Model-is-the-Master paradigm, hence my question. Thus any change to the part would be a change to the model - flowing on through the system to the drawing, to MM, and out to our ERP system - Model is the master. I would like to have a drop down material selection. Upon selecting material, the density of the part will be set, Rendering Base Color/Texture will be set, and the material selection will carry forward to ModelManager Materdata on save. I can also see the material being tied into Sheet Metal in case we ever got that module, and to FEA if we ever got that module. Does anyone know if there is any reference to material properties in ASME Y14.41-2003? |
#2
|
|||
|
|||
Re: Material as an attribute/property of a model?
Quite easy with Model Manager.
You can ....: 1.Define a Masterdata Attribute called for example "MATERIAL" with a data dictionary of possible materials. 2.Define an attribute in modeling like (oli::sd-define-db-attribute "ATTRIBUTES-MM" :class-name "MATERDATA" :attachment :contents :keys '("MATERIAL") :allowed-owner-types art :filing '(:db :sd-file) :master :all n-copy :maintain n-merge :detach n-split :copy :command-name 'set_attribute ) see sd-define-db-attribute options in integration kit docs.In this attribute you can decide who is the master cad doc and/or masterdata.With :allowed-owner-types you can decide if is for part and/or assembly Now you have in Modeling MATERIAL attribute with the same data dictionary as in model manager masterdata class,setting this attribute is passed to masterdata,not to drawing but in the titleblock you can have a reference to Masterdata Material Attribute. Alessandro
__________________
alessandro niccoli pescia(PT)-italy |
#3
|
||||
|
||||
Re: Material as an attribute/property of a model?
That definitely gets me going in the right direction - Thanks!
|
#4
|
||||
|
||||
Re: Material as an attribute/property of a model?
Maybe vote for enhancement request:
http://www.cocreateusers.org/forum/showthread.php?t=100 See quite old prototype for material handling -> material.lsp Last edited by Michael Kahle; 10-17-2011 at 05:50 AM. |
#5
|
||||
|
||||
Re: Material as an attribute/property of a model?
Thanks for the link and the lisp. It looks like I'd already voted, I'd hoped to read the additional posts referenced in the enhancement request, but they appear broken.
|
#6
|
|||
|
|||
Re: Material as an attribute/property of a model?
all this LISP just to set up an attribute really isn't "easy" is it? this type of stuff isn't documented anywhere either, so other than this forum I don't know how someone would figure it out. Also, at least in USA, this knowledge may not even exist anymore with PTC cocreate consulting...
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|