- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Creating a new material to assign mass to a converted STP -possible to automate?
The problem: STP files come in as solid bodies, with the wrong mass. You want to instead apply a target mass.
The fast way I try to avoid: Manually assign correct mass. I try to avoid this because then you get the "override" icon for the mass (with the hand on the calculator), which will then appear in any subassembly containing the converted part. The "override" icon telling you that you can't trust the mass carries itself upstream in the model browser.
The (good) solution: Using the part's volume iproperty, determine what density it must have to arrive at the target mass. Create new material, with the density required. Apply the new material to the part, resulting in the correct mass without any "override" issue.
Is it possible to automate this process? That is, to put a button on a global form that fires an iLogic rule -- and that iLogic rule asks the user for the target mass. The rule then adds a new material to the part (new material based on the part's filename), assigns the density required to match the target mass, sets the part to the new material, and confirms the updated mass to the user. The user can then save the part.
Has this been made already?