Import Outside Items with Different Material Assignment?

Import Outside Items with Different Material Assignment?

phlyx
Advisor Advisor
206 Views
8 Replies
Message 1 of 9

Import Outside Items with Different Material Assignment?

phlyx
Advisor
Advisor

This isn't the only place I have worked where the template parts are set to Material = Generic and Generic is some super ugly pinkish-purple.  This red-flags any parts in an assembly that have not had a "real" material assigned to it.  But it also causes some issues.  When we import parts from outside sources (usually STEP files), they also come in as Generic.  In cases of items that come in as a single IPT, or simple assembly made of a couple parts, it's no big deal.  But when we import components such as complicated conveyors, they may come in with sub-assemblies a half dozen levels deep with hundreds upon hundred of individual parts.  Every one of those parts comes in as "Generic". 

 

2026-08-10_105117.jpg

 

We can override the colors but when we do things like 3D shared views, it ignores those overrides and brings things in that ugly pinkish-purple color.  For presentation files that isn't a really good look.  Would be nice if 3D shared views obeyed the color overrides (and left things that are not visible as invisible rather than displaying everything not suppressed), but would like to know if there is some trick to assign a different material to imported components different than the material is of the standard IPT template?

0 Likes
Accepted solutions (2)
207 Views
8 Replies
Replies (8)
Message 2 of 9

hollypapp65
Collaborator
Collaborator
Accepted solution

Import use the default material set in template.

When you change appearance, double check ViewRep.  Might need to add ViewRep beside Primary and set all file to that ViewRep.

Don't need to change ViewRep if you use material appearance.

You can use iLogic to set material for all child in assembly.

Message 3 of 9

johnsonshiue
Community Manager
Community Manager

Hi! Inventor STEP import does recognize the material style assigned to each part. I guess either the parts were not assigned to any material style or the material style was not properly recognized by Inventor. Could you share an example that illustrate the behavior?

Many thanks!



Johnson Shiue ([email protected])
Software Test Engineer
Message 4 of 9

phlyx
Advisor
Advisor

This is a sample conveyor STEP file.

 

 

0 Likes
Message 5 of 9

johnsonshiue
Community Manager
Community Manager
Accepted solution

Hi Scott,

 

Th parts in the STEP do not have assigned material styles. As a result, the default material style in the Standard.ipt is assigned.

Many thanks!



Johnson Shiue ([email protected])
Software Test Engineer
Message 6 of 9

jnowel
Collaborator
Collaborator

Another idea I can think of is changing the Template before Import.
It will be an iLogic rule that overwrites the Standard IPT file in the Template folder (copied from a backup file that the rule can prompt user where/which to get).

Message 7 of 9

pkomatlapalli
Community Manager
Community Manager

Hi @phlyx ,

 

Did the information shared by Johnsonshiue and Jnowel help answer your question? If so, please consider clicking "Accept Solution" button. This helps other community members quickly find the information they need.

If you still need assistance, feel free to post an update here. The community will be happy to help with any additional questions or next steps.

 

Pavan Kumar | Community Manager
0 Likes
Message 8 of 9

phlyx
Advisor
Advisor

@jnowel can you provide an example or iLogic code to do something like that?  I know enough about iLogic to be dangerous but easier if I have some base stuff to work with.

 

Thanks! 

0 Likes
Message 9 of 9

jnowel
Collaborator
Collaborator

I just asked CoPilot for a sample rule
Try changing the variable to suit a Test source and target folders.
(I lost what I have used in the past, though I was switching IDCL file. But works in the similar concept.)

'===========================================
' iLogic: Copy file based on user selection
'===========================================
' Ask user which source file to use
Dim choice As String = InputListBox("Select source file:", _
                                    {"Source A", "Source B"}, _
                                    "Source A", "File Selection")

' Define file paths
Dim sourceA As String = "C:\SourceFolderA\Template.ipt"
Dim sourceB As String = "C:\SourceFolderB\Template.ipt"

Dim destFolder As String = "C:\TargetFolder\"
Dim destFile As String = ""

' Pick correct source file
If choice = "Source A" Then
    destFile = System.IO.Path.Combine(destFolder, System.IO.Path.GetFileName(sourceA))
    System.IO.File.Copy(sourceA, destFile, True)
ElseIf choice = "Source B" Then
    destFile = System.IO.Path.Combine(destFolder, System.IO.Path.GetFileName(sourceB))
    System.IO.File.Copy(sourceB, destFile, True)
Else
	Exit Sub
End If

MessageBox.Show("Copied: " & choice)


 

0 Likes