I build MEP models with the Content Builder. Pretty much every model that I build will have the same parameters: box length/width/height, inlet length/width/height, outlet length/width/height, etc. I would like to know if there's any way to programmatically add those parameters to a model. Thanks!
Solved! Go to Solution.
I appreciate your reply. The idea for saving a part template is a good one--I'll definitely start doing that. I however think that programmatically manipulating the XML is out of the question. Each parameter has an ID and an index, and I don't want to start adding random values.
I have one more question: I've seen that in the 'part size name' parameter you can use VB or some scripting language to manipulate the values. I use left and right hand values for my models; in order to do this, I have a hand flag and a usually large equation that moves certain profiles around based on the hand flag. It would be MUCH easier to be able to have a script that moves a dimension value based on the hand flag so I don't have to figure the equations out myself. Do you know of a way to do this? Thanks again.
You can use vbscript in content builder but here are very limited commands that you can use. They are the condiditonal statements, (greater than, less than, equal, etc, and then If-then-else statements. This will allow you to drive your geometry I believe. If Hand = 1 then parameter = x else parameter = y. You can also validate and restrict certain sizes. For example, using a part size validation test and setting its formula equal to Total Length > Length A + Length B. If this statement becomes false when inputing values into Length A and Length B, it will not allow the value to be entered. This can make sure that the user does not 'break' your part. I believe that in order to have access to these types of functions you will have to activate the advance mode of content builder which is done by typing pfadvanced at the command line.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register