How to have construction lines already drawn when starting new sketch?

hhls11
Contributor
Contributor

How to have construction lines already drawn when starting new sketch?

hhls11
Contributor
Contributor

Hi all,

 

I'm wanting to have vertical and horizontal construction lines already created whenever I start a sketch so that I can set symmetric constraints to the part I'm drawing up. At the moment, I have to draw both lines every time and constrain them to the center point. It would be much easier if it was already there when I started so I can start on the sketch right away. Is there a way to do this? I've included a photo of what I'd like to do. Thanks in advance for your help!

Inventor Professional 2021
Intel Core i7-9700K @ 3.60Ghz
16GB DDR4 RAM
NVIDIA GeForce RTX 2060 Super GPU
Windows 10 Professional 64-bit
0 Likes
Reply
Accepted solutions (1)
2,180 Views
9 Replies
Replies (9)

jletcher
Advisor
Advisor

Well there is no photo but why would you draw lines? just use constraints Vertical and horizontal to the center orgin.

 

You can have it auto project the orgin center..

 

Capture.JPG

0 Likes

Anonymous
Not applicable

Try projecting the x & y axis into the sketch (assuming you are on the xy plane).

0 Likes

hhls11
Contributor
Contributor

I do already have the origin projected, but using the horizontal and vertical constraints won't make my sketch symmetic about the origin axis. That's my main objective here...

 

@john: I tried to project the axis into the sketch, but it didn't work

Inventor Professional 2021
Intel Core i7-9700K @ 3.60Ghz
16GB DDR4 RAM
NVIDIA GeForce RTX 2060 Super GPU
Windows 10 Professional 64-bit
0 Likes

Anonymous
Not applicable
Accepted solution

Turn on construcion, click project geometry, then click X Axis and Y Axis in the browser, then OK.

8-24-2012 9-49-52 AM.png

jletcher
Advisor
Advisor

hhls11 wrote:

but using the horizontal and vertical constraints won't make my sketch symmetic about the origin axis

 

---------------------------------------------------------------------------------------------------------------------------------------

 

That funny it works for me all the time.....................

 

Maybe you are doing to much on base sketch.....

 

 

 

0 Likes

Curtis_Waguespack
Consultant
Consultant

Hi hhls11,

 

I'm not aware of setting to do this, but you could use this iLogic rule to quickly add the projected line as cosntruction lines to any sketch that needs them.

 

 

 

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 oSelectSet As SelectSet 
oSelectSet = oPartDoc.SelectSet
oSelectSet.Clear 

'turn on construction line
ThisApplication.CommandManager.ControlDefinitions.Item("SketchConstructionCmd").Execute

'look at the workplane collection 
For Each oWorkPlane In oPartDoc.ComponentDefinition.WorkPlanes
'find origin planes only
If oWorkPlane.IsCoordinateSystemElement = True Then 
oSelectSet.Select(oWorkPlane)
End If
Next

'Project Geometry
ThisApplication.CommandManager.ControlDefinitions.Item("AppProjectGeometryWrapperCmd").Execute
'Cancels active command
ThisApplication.CommandManager.StopActiveCommand

'turn off construction line
ThisApplication.CommandManager.ControlDefinitions.Item("SketchConstructionCmd").Execute

 

http://inventortrenches.blogspot.com/2012/01/creating-basic-ilogic-rule-with-event.html

 

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


Anonymous
Not applicable

In sketch mode, select construction lines for linetype, then project geometry either from the relavent workplanes or axis.

This is what I would do, except without turning on construction lines.

0 Likes

hhls11
Contributor
Contributor

This method seems to work fine. Thanks for your help.

Inventor Professional 2021
Intel Core i7-9700K @ 3.60Ghz
16GB DDR4 RAM
NVIDIA GeForce RTX 2060 Super GPU
Windows 10 Professional 64-bit
0 Likes

Anonymous
Not applicable

If you often start your sketches like this, you may want to save this as a template.