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
2876 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 2 of 29
JDMather
in reply to: fakeru

Can you attach example file here that demonstrates how this would be useful?


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


The CADWhisperer YouTube Channel


EESignature

Message 3 of 29
fakeru
in reply to: JDMather

Here is a screenshot of what I mean:

 

So my question is how to select all circles at the same time for extrude? Not to select each of them with the mouse.

 

Regards

Alexandru 

Autodesk Inventor 2015 Certified Professional
Message 4 of 29
jeanchile
in reply to: fakeru

Try this: http://beinginventive.typepad.com/being-inventive/2012/01/extruding-and-shelling-all-the-closed-loop...

Although I do have some suspicions about your workflow. Why so many closed loops and what not a pattern in this instance?
Inventor Professional
Message 5 of 29
fakeru
in reply to: jeanchile

That screenshot was just to show the main idea. Of course I would do a pattern feature then extruding all the profiles.

 

Unfortunately, the macro from that blog doesn't help me. It is designed to make pipes. I don't need a thickness to my extrusion.

And I need this trick for revolve feature as well.

 

Thanks anyway!  

Autodesk Inventor 2015 Certified Professional
Message 6 of 29
JDMather
in reply to: fakeru


@fakeru wrote:

Of course I would do a pattern feature then extruding all the profiles.

 


That doesn't quite make sense?

Pattern features rather than sketch entities.  Post the real file to see the best way to do it.


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


The CADWhisperer YouTube Channel


EESignature

Message 7 of 29
jeanchile
in reply to: fakeru

Listen to what JD is saying. It would appear to both of us that your workflow is suspect. Can you post a part or explain your desired result a little further?
Inventor Professional
Message 8 of 29
fakeru
in reply to: jeanchile

The screenshot was just to make you understand what I need and is not my real situation when I need to select all profiles. Maybe it was bad example. 

Believe there are many situation when you cannot use pattern features instead extruding all closed profiles. An example would be when I import a building sketch plan from autiocad, and I want to extrude the columns, but columns are a lot and not arranged according to a pattern. Then I have to select all columns manually. 

 

I believe I need a macro that simply selects all closed proflies in a sketch an makes an extruion with a certain dimension. 

 

Regards

Alexandru 

 

Autodesk Inventor 2015 Certified Professional
Message 9 of 29
JDMather
in reply to: fakeru


@fakeru wrote:

The screenshot ....is not my real situation when I need to select all profiles. 


Post real situation.


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


The CADWhisperer YouTube Channel


EESignature

Message 10 of 29
Dan_Margulius
in reply to: JDMather

There is no problem with what the man requested!!! So stop question him about the workflow.

Extrude multiple profiles with one click!! It works that way in SW so why not in Inventor?

FAKERU you have to pick multiple profiles one by one...Why you ask? Because AD wants it so.

Maybe in the future we will be able to do it in one click.

By the way you can try intersection and pick the face and it will recognize the multiple profiles in one click.

 

Regards,

Dan

 

Message 11 of 29
Dan_Margulius
in reply to: fakeru

Hi,

Here is the workaround, a very poor one but thats what we have :

http://inthemachine-autodesk.typepad.com/blog/2010/08/embrace-the-intersect.html

 

Regards,

Dan

Message 12 of 29
JDMather
in reply to: Dan_Margulius


@Dan_Margulius wrote:

 It works that way in SW so why not in Inventor?

 


 

I am pretty sure most SolidWorks pros would not make features as depicted in post #2 either.

 On the other hand using Intersection is often a good solution overlooked in both Inventor and SolidWorks.

 

 

But for what it is worth -

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1109794

 

I would be interested in seeing the "real" problem.


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


The CADWhisperer YouTube Channel


EESignature

Message 13 of 29
michmaju
in reply to: fakeru

I run into this when embossing our logo in parts. The logo has the company name and every time I want to use it I have to select every letter. I get annoyed everytime i do it. As with Solidworks, this is a nonissue for ProE. I'll have to try the intersect method next time to see if it helps.
Matthew
INV 2013
Message 14 of 29
PACDrafting
in reply to: fakeru

You could write some code to select all sketch blocks with a certain name for example and extrude those profiles. Shouldn't be too hard to write.
Message 15 of 29
jeanchile
in reply to: Dan_Margulius


@Dan_Margulius wrote:

There is no problem with what the man requested!!! So stop question him about the workflow.

 


Jeeeez, relax Dan. The examples he kept posting (in an effort to simplify his issue) were indicative of an improper workflow that broke the very first rule in 3D Modeling which is why I (and likely JD) asked for clarification. Neither of us were disrespectful and we were simply trying to help this person find an alternative (and possibly better) solution to his problem, that's all.

 

For the record, fakeru, I'll bet if you posted the link to the macro I posted earlier over on the customization forum, someone smarter than me could take a look at it and possibly remove the end part of it for you so you ended up with solids elements instead of shelled ones.

 

Good luck!

Inventor Professional
Message 16 of 29
fakeru
in reply to: JDMather

It is not a problem. I call it a situation, when you need to select many profiles to make an extrusion/revolve. The point is that there are many different situations like this. It is not just one. I have 4 years of Inventor experience and I don't pretend to be a professional user, but I know very well his basics possibilities. Now I try to reduce my working time as more as possible and where is possible. I’m trying to customize my work in Inventor to gain more time. I posted the example of the building sketch imported from AutoCAD. Isn’t that enough? Even if I have to select 3 profiles from a sketch, I would like to have it automatically done, because I repeat this operation many times in a day, and in the end it saves me time!
The only solution I see is a macro that could make this. But this is where I struggle the most, in programming…
Anyway, I will try to post here a real situation from my work if everything what I wrote here is not convincing.

Regards
Alexandru

Autodesk Inventor 2015 Certified Professional
Message 17 of 29
JDMather
in reply to: fakeru

I suspect that a Punch tool might prove to be a very clever yet unconvential solution.

But I need to see a true problem to be sure.


You have repeated geometry that needs to be placed - but the placement does not fit a pattern.

Simply dimension the location point with sketch points (one way or another you have to locate - this is true regardless of the selection problem).  This is easier than the desired solution of a one pick selection of disjointed lool areas.

Punch will automatically find sketch points and place the geometry.

Now that I have said all of this - post that example and show me that I just wasted my time because I didn't fully understand the problem.


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


The CADWhisperer YouTube Channel


EESignature

Message 18 of 29
mcgyvr
in reply to: JDMather

I could use the ability to window select multiple closed sketch profiles too.. My example is for replicating the silkscreening process/output in Inventor. The process that works for me is to create all the text in Autocad, then import that layer into an Inventor sketch, then extrude all the text (.001"). Manually selecting each profile is a pain/time consuming and was made even worse a few years ago when Autodesk changed something and now after selecting a few of profiles it slows Inventor more and more with each pick and I can only select 1 profile every few seconds or so (sometimes up to 10 seconds between each selection).Pre a few years ago I could select as fast as my mouse finger could go.. Window select would be useful.

 

Now off to read the links/workarounds posted before this and hope there is a solution in there.



-------------------------------------------------------------------------------------------
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 19 of 29

Hi everyone,

 

Here is a quick iLogic rule to help with these special circumstances when this is needed. If you place this in an external rule, then it will be available for use in any part file. To use it you must be in an active sketch. It selects all closed profiles found in the active sketch and gathers some input for distance, direction and solution. I'd suggest using construction lines to exclude any profiles you don't want included when using this, as it's an all or nothing method as written.

 

As I mentioned this is rather "quick and dirty" so you might find some issues with it. I'd advise you to make sure your work is saved first before running this, at least for a while.

 

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

 

 

Edit: updated this to add an error check for when no closed profiles are found

 

If Typeof ThisApplication.ActiveEditObject Is Sketch Then
'Do nothing
Else
MessageBox.Show("Activate a Sketch First then Run this Rule", "ilogic")
Return
End If

Dim oPartDoc As PartDocument
oPartDoc = ThisApplication.ActiveDocument

Dim oCompDef As PartComponentDefinition
oCompDef = oPartDoc.ComponentDefinition

Dim oSketch As PlanarSketch
oSketch = ThisApplication.ActiveEditObject

' Create a profile.
Dim oProfile As Profile
On Error Goto NoProfile
oProfile = oSketch.Profiles.AddForSolid

'get user input
oDistance = InputBox("Enter Extrude Distance", "iLogic", "10 mm")
oDirection  = InputRadioBox("Select Extrude Direction", "Up (+)", "Down (-)", True, Title := "iLogic")
oJoinOrCut  = InputRadioBox("Select Extrude Solution", "Join", "Cut", True, Title := "iLogic")

If oDirection = True then
oDirection = kPositiveExtentDirection
Else
oDirection = kNegativeExtentDirection
End if

If oJoinOrCut = True then
oJoinOrCut = kJoinOperation
Else
oJoinOrCut = kCutOperation
End if

' Create an extrusion
Dim oExtrude As ExtrudeFeature
On Error Goto NoExtrude
oExtrude = oCompDef.Features.ExtrudeFeatures.AddByDistanceExtent( _
oProfile, oDistance, oDirection, oJoinOrCut)

ThisApplication.CommandManager.ControlDefinitions.Item("FinishSketch").Execute

iLogicVb.UpdateWhenDone = True

exit sub

NoProfile:
MessageBox.Show("No closed profile found", "iLogic")
Return

NoExtrude:
MessageBox.Show("No extrusion created, check your inputs.", "iLogic")
Return

 

Message 20 of 29
mcgyvr
in reply to: Curtis_Waguespack

Curtis,

I LOVE YOU Heart.... Works EXCELLENT.. 

Just tried it with a typical silkscreen representation..

Manual hand selecting all the text for extrusion took 1 min 47 seconds.. Running the rule took ONLY 8



-------------------------------------------------------------------------------------------
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

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

Post to forums  

Autodesk Design & Make Report