Assembly Occurrence Suppression

Assembly Occurrence Suppression

Anonymous
Not applicable
495 Views
8 Replies
Message 1 of 9

Assembly Occurrence Suppression

Anonymous
Not applicable
I've seen a lot of posts about Feature Suppression.
Is it possible to suppress certain "part occurrences" within an assembly? I'd prefer to do it in VB if someone can point me in the right direction.
0 Likes
496 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
Hello jimpe,

No, you cannot 'Suppress' an Occurrence, but depending on what you are trying
to implement, setting the visibility of a given Occurrence might suit your
needs:
"oAssemblyDocument.ComponentDefinition.Occurrences(1).Visible = False"

Cheers,
Adam

> I've seen a lot of posts about Feature Suppression.
> Is it possible to suppress certain "part occurrences" within an
> assembly?
> I'd prefer to do it in VB if someone can point me in the right
> direction.
0 Likes
Message 3 of 9

Anonymous
Not applicable
Thanks Adam. Would anyone from Autodesk like to confirm that you cannot 'Supress' an assembly occurrence?
I don't think disabling the visibility would have the desired affect in the assemblies .idw or the parts list, but I will try it.
Thanks again.
Jim
0 Likes
Message 4 of 9

Anonymous
Not applicable
Jim,

Adam is in fact from Autodesk. Nevertheless, I can confirm his statement
that suppression of occurrences is not currently supported. Why do you need
to suppress them?

Sanjay-

wrote in message news:5034673@discussion.autodesk.com...
Thanks Adam. Would anyone from Autodesk like to confirm that you cannot
'Supress' an assembly occurrence?
I don't think disabling the visibility would have the desired affect in the
assemblies .idw or the parts list, but I will try it.
Thanks again.
Jim
0 Likes
Message 5 of 9

Anonymous
Not applicable
Making an Assembly Occurence both "not Visible" and marked as "Reference"
will "suppress" it.

--
T. Ham
Mechanical Engineer
CDS Engineering BV

Dual Pentium XEON 2.2 Ghz
2 GB SDRAM
NVIDIA QUADRO4 700 XGL (Driver = 77.18)
18 GB SEAGATE SCSI Hard Disc
3Com Gigabit NIC

Windows 2000 Professional SP4
Autodesk Inventor Series 9 SP4
Autodesk Inventor Series 10 SP2
--

"Sanjay Ramaswamy (Autodesk)" wrote in
message news:5034715@discussion.autodesk.com...
Jim,

Adam is in fact from Autodesk. Nevertheless, I can confirm his statement
that suppression of occurrences is not currently supported. Why do you need
to suppress them?

Sanjay-

wrote in message news:5034673@discussion.autodesk.com...
Thanks Adam. Would anyone from Autodesk like to confirm that you cannot
'Supress' an assembly occurrence?
I don't think disabling the visibility would have the desired affect in the
assemblies .idw or the parts list, but I will try it.
Thanks again.
Jim
0 Likes
Message 6 of 9

Anonymous
Not applicable
Sanjay,

I have an assembly made up of custom iparts. I'm using VB to 'changerowofipart' for different versions of the assembly. There is one part however, that is either a 45degree housing or a 90degree housing. The two versions are too dissimilar to incorporate into one ipart. My thought was to put both versions in my base assembly and depending on which assembly version I need, suppress one of the housings and use the other.

Teun,

Thanks. Turning off visibility and setting the BOM Structure to Reference removes it from the parts list in the .idw and makes it's line type phantom (which I can turn off).
Adam passed along the code for visibility, do you know what the VB code would be to set the BOM Structure to Reference?

Thanks again.

Jim
0 Likes
Message 7 of 9

Anonymous
Not applicable
Simple:

Sub ChangeToReference()

Dim oAssemblyDocument As AssemblyDocument
Set oAssemblyDocument = ThisApplication.ActiveDocument

oAssemblyDocument.ComponentDefinition.Occurrences(1).BOMStructure =
kReferenceBOMStructure

End Sub


--
T. Ham
Mechanical Engineer
CDS Engineering BV

Dual Pentium XEON 2.2 Ghz
2 GB SDRAM
NVIDIA QUADRO4 700 XGL (Driver = 77.18)
18 GB SEAGATE SCSI Hard Disc
3Com Gigabit NIC

Windows 2000 Professional SP4
Autodesk Inventor Series 9 SP4
Autodesk Inventor Series 10 SP2
--

wrote in message news:5037602@discussion.autodesk.com...
Sanjay,

I have an assembly made up of custom iparts. I'm using VB to
'changerowofipart' for different versions of the assembly. There is one
part however, that is either a 45degree housing or a 90degree housing. The
two versions are too dissimilar to incorporate into one ipart. My thought
was to put both versions in my base assembly and depending on which assembly
version I need, suppress one of the housings and use the other.

Teun,

Thanks. Turning off visibility and setting the BOM Structure to Reference
removes it from the parts list in the .idw and makes it's line type phantom
(which I can turn off).
Adam passed along the code for visibility, do you know what the VB code
would be to set the BOM Structure to Reference?

Thanks again.

Jim
0 Likes
Message 8 of 9

Anonymous
Not applicable
Thanks Teun, that worked fine.
0 Likes
Message 9 of 9

Anonymous
Not applicable
Jim,

Do you still have this code? If you do, please pass it on. Thanks
0 Likes