Paint Coverage Idea, Is this possible with iLogic or Add-in?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys. I want to make a tool that simulates a part being painted and calculates the surface area that gets painted, as well as displays the part with the painted areas. The reason for this is that my company paints a lot of sheet metal parts, and we have to manually calculate the surface area of a part that can actually be painted (since some parts/assemblies have overlapped surfaces, or flush surfaces, closed hems, etc.) in order to accurately cost painting and order the right amount of paint. Right now we are just using the measure tool and making a judgement call as to which surfaces can get painted and adding them up. Everyone has their own way of doing it but it takes time and is not consistent. I want to make the process accurate and consistent as well as save time and effort. This is my plan for the tool. Can you let me know if this is possible to code with iLogic? or should I try to make an add-in? My knowledge of inventor API is very limited. Thank you.
(works on parts or assemblies)
1. Create Mesh
- for each surface create nodes that cover surface
- user to specify node size
2. Project Vectors
- at the center of each node project vectors in all directions from normal to 90° to normal
- vectors to be equally spaced in all directions. number of vectors at each node to be determined by trial
3. Check Vector Collision
- for each vector check if it collides with any part body
- if it does collide with any part body add it to a counter for that node
- counter determines how many vectors at the node hit part body and how many dont
4. Sum Vectors for Each Node
- if more than X vectors at the node collide with part body consider the node un-painted
- X to be determined in trial. Could start with 75%.
5. Calculate Surface Area
- Sum the surface area of nodes that are painted and un-painted
6. Create a Simulated Painted Part
- Make a new part that is a copy of the current part/assy and extrude each node .0001
- apply an appearance to each painted node
- display original iproperty surface area, painted surface area, and unpainted surface area.
- display transition zone (nodes that are +/- 5% of X show a gradient of the appearance)
If something is unclear please ask about it. Thanks for any direction you can give me.
Inventor 2022