Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fast selection of closed profiles in sketch

28 REPLIES 28
SOLVED
Reply
Message 1 of 29
fakeru
2855 Views, 28 Replies

Fast selection of closed profiles in sketch

Hello everybody!

I'm just wondering is there a possibility to select all closed profiles from a sketch to make an extrusion or revolve with a shortkey instead doing that manually with the mouse for each profile? Something like CTRL+A 🙂

 

Regards

Alexandru 

 

Autodesk Inventor 2015 Certified Professional
28 REPLIES 28
Message 21 of 29

Works very well.

Nice one.

 

Thanks,

Dan

Message 22 of 29
Curtis_Waguespack
in reply to: mcgyvr

Smiley Embarassed

lol mcgyvr,

 

It was your mention of silk screens that inspired me to throw that together, as I've encountered that exact challenge in the past. Someone else mentioned engraving logos, and I've run into that as well.

 

Up until I read those two examples of how this might be used, I was thinking as JDMather and jeanchile were that this request was coming from a poor workflow. So I'll throw in a caution to new users not to try and use this or anyother iLogic as a shortcut to good technique:

http://inventortrenches.blogspot.com/2011/03/inventor-101-simple-fully-constrained.html

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

Message 23 of 29
fakeru
in reply to: Curtis_Waguespack

Thank you very much!Smiley Very Happy 

 

Anyway, here is a real example.

This is an imported sketch from Autocad:

http://img826.imageshack.us/img826/4955/captureven.jpg

 

These are the columns of a building:

http://img804.imageshack.us/img804/9748/microdosinglevel1.jpg

 

I choose to make them in one extrude feature.

 

Regards

 

Alexandru 

Autodesk Inventor 2015 Certified Professional
Message 24 of 29
mcgyvr
in reply to: Curtis_Waguespack


@Curtis_Waguespack wrote:

Smiley Embarassed

lol mcgyvr,

 

It was your mention of silk screens that inspired me to throw that together, as I've encountered that exact challenge in the past. Someone else mentioned engraving logos, and I've run into that as well.

 

 

Again..Curtis.. I love you.. Just had to do a very large silkscreen with tons of profiles to pick.. For giggles I did it manually first and it took 4 min 18 seconds to pick them all. Then I undid that and tried your ilogic rule.. Took ONLY 11 seconds for the rule to run/extrude all the profiles. Amazing...



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 25 of 29

Hi Inventor users,

 

By request I've added a couple of other versions of this iLogic rule at this link. One version  uses the Through All method and automatically cuts all open profiles through all, bidirectionaly. The other use the To Next method to extrude.

 

http://inventortrenches.blogspot.com/2012/03/ilogic-to-select-all-of-closed-profiles.html

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 26 of 29
mcgyvr
in reply to: Curtis_Waguespack

Curtis..I still love you for this.. I use it all the time.. Heart



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 27 of 29

Can this code be modified to produce multiple surfaces instead.

 

I have tried to modify it with little luck. This is what I have so far

 

Below are only the lines that I have changed

.....

oProfile = oSketch.Profiles.AddForSurface

.....

oExtrude = oCompDef.Features.ExtrudeFeatures.AddByDistanceExtent( _
oProfile, oDistance, kSymmetricExtentDirection, kSurfaceOperation)

.....

 

Curtis's original code with these mods seems to work but the output is only one surface extrusion. Currently in my trial sketch I have a couple of linked lines and an arc. The new surface is only of the first item drawn in the sketch. In this case only the linked lines

 

Could someone help me with this if possible

 

Thanks

Message 28 of 29
adam.nagy
in reply to: VGonsalves

Hi,

 

How about using the original code and then transforming the generated solids into surfaces?

https://forums.autodesk.com/t5/inventor-forum/solid-to-surface/td-p/3102900

 

Cheers,



Adam Nagy
Autodesk Platform Services
Message 29 of 29
VGonsalves
in reply to: adam.nagy

Adam

 

The problem with using the original code is that it doesn’t extrude the open profiles. I have a mix of closed and open profiles. Plus they may or may not be in a block. I can get the original code to create surfaces off all closed profiles by simply changing the extrude command to a surface.

 

Once I am able to cobble up some code for my original intent I would like to let the user add entities to the sketch and run the command again. This time the code should look for entities that do not have an extrusion associated to it and generate one. Might seem ambitious but ideas come easier than actual code

 

Thanks

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

Post to forums  

Autodesk Design & Make Report