Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

substitute for iAssemblies

1 REPLY 1
Reply
Message 1 of 2
Anonymous
224 Views, 1 Reply

substitute for iAssemblies

Anonymous
Not applicable
Hi guys,

I've got a situation where an iAssembly (like an iPart) would be the bomb...
Of course, we all know they're not available yet, which brings me to my
question:

Would it be possible to write a script that performed the following
functions -
1. Copy an assembly and all its parts to a new folder.
2. Rename that assembly (either add a numeral at the end or prompt the user)
and all its parts.
3. (This one probably wouldn't be 100% necessary) Switch OFF the "Adaptively
used in assembly" button in the document settings.

I'm thinking if you had a script that could do this, you could set it up
such that you run the script, it asks you which "iAssembly" you want and
what folder you'd like it created in, and then began the "place component"
command... And you'd then have a fresh sub-assy you could adapt to the
situation without ruining the one that came before it...

Sound good? Sound possible?

Thanks... (warning, if you tell me it is possible I shall be back in here
tomorrow asking for help when I get stuck almost immediately 🙂

Col.
0 Likes

substitute for iAssemblies

Hi guys,

I've got a situation where an iAssembly (like an iPart) would be the bomb...
Of course, we all know they're not available yet, which brings me to my
question:

Would it be possible to write a script that performed the following
functions -
1. Copy an assembly and all its parts to a new folder.
2. Rename that assembly (either add a numeral at the end or prompt the user)
and all its parts.
3. (This one probably wouldn't be 100% necessary) Switch OFF the "Adaptively
used in assembly" button in the document settings.

I'm thinking if you had a script that could do this, you could set it up
such that you run the script, it asks you which "iAssembly" you want and
what folder you'd like it created in, and then began the "place component"
command... And you'd then have a fresh sub-assy you could adapt to the
situation without ruining the one that came before it...

Sound good? Sound possible?

Thanks... (warning, if you tell me it is possible I shall be back in here
tomorrow asking for help when I get stuck almost immediately 🙂

Col.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Do-able, but you are missing a rather important step. The new assembly (and
subassemblies) need to know they are now comprised of parts that are named
differently. AssyA contains PartA and PartB. The copied assembly, AssyA01,
has to load PartA01 and PartB01. You might want to think about doing this in
VB and using Inventor's Apprentice Server. For a short discussion of this
topic, search for Apprentice Server in the Programming Help.

Cheers,
Neil

"Colin" wrote in
message news:CE92D331CB15CD1672C900A6B78439F4@in.WebX.maYIadrTaRb...
> Hi guys,
>
> I've got a situation where an iAssembly (like an iPart) would be the
bomb...
> Of course, we all know they're not available yet, which brings me to my
> question:
>
> Would it be possible to write a script that performed the following
> functions -
> 1. Copy an assembly and all its parts to a new folder.
> 2. Rename that assembly (either add a numeral at the end or prompt the
user)
> and all its parts.
> 3. (This one probably wouldn't be 100% necessary) Switch OFF the
"Adaptively
> used in assembly" button in the document settings.
>
> I'm thinking if you had a script that could do this, you could set it up
> such that you run the script, it asks you which "iAssembly" you want and
> what folder you'd like it created in, and then began the "place component"
> command... And you'd then have a fresh sub-assy you could adapt to the
> situation without ruining the one that came before it...
>
> Sound good? Sound possible?
>
> Thanks... (warning, if you tell me it is possible I shall be back in here
> tomorrow asking for help when I get stuck almost immediately 🙂
>
> Col.
>
>
0 Likes

Do-able, but you are missing a rather important step. The new assembly (and
subassemblies) need to know they are now comprised of parts that are named
differently. AssyA contains PartA and PartB. The copied assembly, AssyA01,
has to load PartA01 and PartB01. You might want to think about doing this in
VB and using Inventor's Apprentice Server. For a short discussion of this
topic, search for Apprentice Server in the Programming Help.

Cheers,
Neil

"Colin" wrote in
message news:CE92D331CB15CD1672C900A6B78439F4@in.WebX.maYIadrTaRb...
> Hi guys,
>
> I've got a situation where an iAssembly (like an iPart) would be the
bomb...
> Of course, we all know they're not available yet, which brings me to my
> question:
>
> Would it be possible to write a script that performed the following
> functions -
> 1. Copy an assembly and all its parts to a new folder.
> 2. Rename that assembly (either add a numeral at the end or prompt the
user)
> and all its parts.
> 3. (This one probably wouldn't be 100% necessary) Switch OFF the
"Adaptively
> used in assembly" button in the document settings.
>
> I'm thinking if you had a script that could do this, you could set it up
> such that you run the script, it asks you which "iAssembly" you want and
> what folder you'd like it created in, and then began the "place component"
> command... And you'd then have a fresh sub-assy you could adapt to the
> situation without ruining the one that came before it...
>
> Sound good? Sound possible?
>
> Thanks... (warning, if you tell me it is possible I shall be back in here
> tomorrow asking for help when I get stuck almost immediately 🙂
>
> Col.
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report