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: 

Using User Parameters in Drawing Sketch

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
mwood
5076 Views, 5 Replies

Using User Parameters in Drawing Sketch

We are trying to add reference lines to the idw drawing for a sub-assembly.  These lines represent centerlines of parts of the main assembly. The main assembly is not the reference file for the drawing.  However, the required dimension setting the centerlines is a User Parameter in the sub-assembly.  (The centerlines are represented by work planes in the sub-assembly file).  Using iLogic, we were able to populate the User Parameter from the sub-assembly into the idw file.  We can see it as a User Parameter in the idw file.  However, when we go into sketch mode the User Parameter is not an option.    In sketch mode, we pull a dimension between the two centerlines (d4).  When you look at the parameters d4 does not exist so we cannot set d4 equal to our User Parameter (and we've looked there are no filters on).      We need this dimension to be able to adjust as the length of the sub-assembly adjusts for different cases.  Each case is unique and done on a job by job basis. 

 

There are several places in our drawings where being able to place reference lines and set their relationship to the part would be very useful. 

 

1.  Why are the User Parameters not available for use in sketch mode on a drawing?

2.  Why can the dimension IDs (ex. d4) not be seen by looking at the parameters? 

3.  Does anybody have a suggestion of an alternative way of putting reference lines on a drawing? 

 

Molly

5 REPLIES 5
Message 2 of 6
MjDeck
in reply to: mwood

Maybe you can show the work planes from the subassembly in the drawing, instead of creating reference lines?  Here's a screenshot that shows how to make work planes visible:

 

WorkPlaneDrawing.png

 

If that doesn't work, and you still need reference lines, it is possible to have a user parameter drive sketch dimensions in a drawing.  It can be done using API functions in an iLogic rule.  See the attached text file DriveDrawingSketchParam .txt.  This has a user parameter named SketchDriver0 and a sketch parameter named d0.  Change these names as necessary.  You may also have to change the names sheet and view names (Sheet:1 and DRAFT).  This rule assumes that you have only one sketch in the view.  It could be modified to access other sketches.

 

 As you found, the User Parameters in a drawing cannot be connected directly to the sketch parameters.  Unlike a part or assembly, there are no Model Parameters: each sketch exists by itself with its own parameters.  The User Parameters were added in Inventor 2011 for use in iLogic rules.  They are not connected to anything else in the drawing.


Mike Deck
Software Developer
Autodesk, Inc.

Message 3 of 6
mwood
in reply to: MjDeck

Mike,

 

Thank you for the response.  We will try showing the work planes on the drawing.  I think that may work for our application.  However, in case it doesn't, could you attach the text file you mentioned in the previous post? 

 

Thanks,

 

Molly Wood

 

Message 4 of 6
Genicee
in reply to: mwood

Can .txt file code be modified for sketch symbols?

Message 5 of 6
manikanda.prabhu
in reply to: mwood

How does the code will be if there are many sketches.

 

 

Message 6 of 6

@manikanda.prabhu you may either name your sketches and reference them thus, or use the Sketches() collection to index using an integer into the list of sketches associated with your view.

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

Post to forums  

Autodesk Design & Make Report