AutoCAD Inventor :: How To Select Workplane In Drawing Document With API

Jun 18, 2013

If i made a workplane include in a drawing document with api, then it will display in the view as a center line.

I want add some note to the Center line,but i didn't know how to select it with api, Is there have the API function to do this work?

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Create Workplane From A Face In Assembly Document

Jul 15, 2011

In an assembly document, I try to add a MateConstraint between male and female side of an 45 degrees elbow. The male side is built on the XZ Plane and Y Axis And I try to create a workplane on the female face.

But a got an error with the last line of code.  Here's my code (vb.net code) :

' Get application object
Dim app As Inventor.Application = GetObject(, "Inventor.Application")       
Dim doc As Inventor.AssemblyDocument = app.ActiveDocument           

[Code] .......

View 3 Replies View Related

AutoCAD Inventor :: How To Create Workplane From A Face Using Select Set

Nov 8, 2012

I am making a C# Add-in, I need to create a plane from a selected face, I am using the following code, but I am getting stuck.

if (((mApp.ActiveDocument != null)))
{
if ((mApp.ActiveDocument.DocumentType == DocumentTypeEnum.kPartDocumentObject))
{
PartComponentDefinition oPartCom = mApp.ActiveDocument as PartComponentDefinition;
PartDocument oDoc = mApp.ActiveDocument as PartDocument;
[code].......

View 2 Replies View Related

AutoCAD Inventor :: Keep Drawing View Aligned To Workplane?

Jul 31, 2012

I have some models which are based on skeleton modeling and where the actual parts are modeled at the position where they are in the assembly. When the skeleton part is changed the parts will update and their orientation related to the origin planes can change. This is where the problem lies, on the drawings of these parts the views are all skewed after an update.

Is it somehow possible to tell Inventor that all views on a a drawing should stay alligned to a workplane? Because it are all parts and no assemblies I cannot use posreps (and I don't want to use dummy assemblies). I also tried setting a specific edge to be horizontal with the rotate command in the drawing. This works for the base view, but all projected views will still be skewed after an update.

View 2 Replies View Related

AutoCAD Inventor :: How To Get Model-document Name For Drawing-document

Feb 11, 2013

I tried to print thisdrawing.modeldocument in a vba sub, but it doesn't work.

View 4 Replies View Related

AutoCAD Inventor :: Open Document From Drawing Partslistrow

Sep 25, 2013

I wish to open a part or assemblydocument by its item number in the drawingdocument.

I can make an inputlistbox with all Item numbers in the drawing.

I can also link the result of the inputlistbox to the partslistrow.Item("Item").Value.

 I am stuck here. I can not find the link/reference from a partslistrow to a document.

Is there a propertyfield that keeps the link? Or another way?

Comparing partlist and BOM cells by value is not a method I can use

View 2 Replies View Related

AutoCAD Inventor :: How To Put IFeature On Workplane

Aug 12, 2013

I want to put my iFeature on my workplane,but i can't.However, if I change my PlaneInput = oFace , it can work perfectly.My program is below:

Private WithEvents oInteraction As InteractionEvents
Private WithEvents oselect As SelectEvents
Private Sub UserForm_Initialize()
    Set oInteraction = ThisApplication.CommandManager.CreateInteractionEvents
    Set oselect = oInteraction.SelectEvents

[code]...

View 1 Replies View Related

AutoCAD Inventor :: Ilogic To Change Drawing Document Settings?

Jun 3, 2013

Im looking to make a simple ilogic rule that can toggle an option in the document settings, the setting I would like to change is the Document settings> Modeling> Participate in assembly and drawing sections

I would like a form to switch the option on and off quickly, its a really usefull function however I know a few of my colleagues wont use if they cant find it easly.

View 1 Replies View Related

AutoCAD Inventor :: How To Locate Orphaned Dimensions On Drawing Document

Apr 16, 2012

After looking thru the api, i'm finding it hard to get a list of orphaned dimensions.

I can get a list of all the dimensions...easy.

I've basically deleted a part from the assembly and now want to remove that dimension in a section view on the drawing document.

But looking / comparing the properties of a non-orphaned vs an orphaned shows nothing.

Is there an orphaned list?

Is there a color override switch somewhere?

Or can I somehow get the object that the dimension is trying to reference and check to see if it is valid or has a valid file reference...or something?

View 8 Replies View Related

AutoCAD Inventor :: Create New Base View In Drawing Document

Jul 13, 2009

I am trying to create a new base view in drawing-document.

I can get hold of the view but cant find a way to set reference data --- would like to set the "Line Style" to "As Parts" and "Hidden Line Calculation" to "All Bodies".

View 5 Replies View Related

AutoCAD Inventor :: Associating A Workplane With A Block

Dec 3, 2012

I want to use a lofted solid as a component in an assembly. I am using a top-down approach with 2D blocks to get the kinematics right before creating the components.

My problem is that the sketches needed to create the loft are on workplanes, and those workplanes are fixe with respect to an absolute coordinte system.

Is there a way to assosiate workplanes with a block instead, so that they will move with the part?

Is it possible that the problem is trying to do this in a part file, and that if I place the finished solid in an assembly it will then be able to move? ( I am fairly new to Inventor.)

View 1 Replies View Related

AutoCAD Inventor :: Moving A Fixed Workplane?

Jan 6, 2014

I created a sketch on a 'fixed workplane' and extruded it. I would like to know if it is possible to move the workplane? I understand I can change the workplane if it is a 'plane by offset from plane'.

If moving a fixed workplane is possible, does the extruded features move along together?

View 2 Replies View Related

AutoCAD Inventor :: Create Dimension On Drawing Document Between Two Parts In Assembly

Feb 8, 2010

From a VB.Net program, I'm trying to create a dimension on a drawing document between two parts in an assembly. I can get the parts using component occurrence. The line marked below throws the following error: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)).

As you may see, I have allocated memory for both "Edge" and "Face" (Dim oEdge1 As Face) albeit one is commented out. Attached is the screen shots from the attribute helper add-in. In it, you will notice that the attributes are of type: "Face".

Public Sub CreateDrawingDimension(ByVal Part1 As String, ByVal Part2 As String, ByVal AttName1 As String, ByVal AttName2 As String)
' Get the Active Drawing document
Dim oDrawDoc As Inventor.DrawingDocument
oDrawDoc = invApp.ActiveDocument
[code]........

View 2 Replies View Related

AutoCAD Inventor :: Get Title Of Saved Document Out Of Drawing Number Section

Jun 6, 2012

When i make a drawing in inventor, in the Title Block, it says the title of the saved document in the Drawing No. section. So what i am saying is how do i get the title of the saved document out of the drawing number section and either delete it or get it in the Title section.

View 2 Replies View Related

AutoCAD Inventor :: Change Colour Of User Workplane?

Nov 22, 2011

Is it possible to change the colour of User Workplanes in IV 2011?

Autodesk Inventor 2013-64Bit Edition
Intel Xeon W3520 @ 2.67GHz
Win 7 Pro
6.7 System Rating
NVIDIA Quadro FX 1800

View 1 Replies View Related

AutoCAD Inventor :: Create Workplane From Selected Face?

Nov 14, 2012

I am working on a project were I need to select a face and create a workplane out of such face, see the figure attach. my language of choice is C#. 

Here is what I think it should be done, my proble is that the oWork (the workplane I just created remains null) and the whole project crashes.
 
private Inventor.Application mApp = null;.....if (((mApp.ActiveDocument != null))){
if ((mApp.ActiveDocument.DocumentType == DocumentTypeEnum.kPartDocumentObject)){
PartComponentDefinition oPartCom = mApp.ActiveDocument as PartComponentDefinition;
PartDocument oDoc = mApp.ActiveDocument as PartDocument;if ((oDoc.SelectSet[1]) is Face){
System.Windows.Forms.MessageBox.Show("You just selected a surface", "Surface Evaluator");Face oFace = oDoc.SelectSet[1] as Face;
WorkPlane oWorkpl = oFace as WorkPlane;
PlanarSketch oSketch = oDoc.ComponentDefinition.Sketches.Add(oWorkpl, false);
//WHAT AM I DOING WRONG?
}}}

View 4 Replies View Related

AutoCAD Inventor :: VBA Code Not Working For Workplane In Assembly

Oct 15, 2004

I have assembly file in which I have created a work plane "Work Plane19" . Now I wanted to create a new work plane which will be paralle to workplane "WorkPlane19" & offset by 10.5 mm in same assembly document through VBA subroutine. I have tried with following code but getting error,

Public Sub NewWorkPlaneCreate()
Dim oAssly As AssemblyDocument
Set oAssly = ThisApplication.ActiveDocument

[Code].....

View 6 Replies View Related

AutoCAD Inventor :: Create A Workplane With The API That Is Tangent To A Surface

May 18, 2006

How can I create a workplane with the API that is tangent to a surface and passes thru a workpoint. It is easy to create a work plane of type kPointAndTangentWorkPlaneDefObject by point and click in Inventor 11, but I can't figure out how to do it in the API.

View 5 Replies View Related

AutoCAD Inventor :: IPT File - Get Suppress Status Of Workplane

Jul 29, 2013

I have a ipt file in my assembly and try to makes some constraints. Everything ios working well, but there are some suppressed workplanes, and I don't want to use them for a automatically created constraint. Is there a way to find out the workplane suppress status?

Why are they suppressed? They are defined on a part feature (extrusion surface). And when I supress that feature, also the Workplane is suppressed.

But I only can get the visible status. Maybe there's a way to get it about the part feature, but therefore, I have to search for the part feature, and that's also a problem. I cannot get the part feature, who is used for the workplane definition (I think, it's a problem of my knowledge )

Please see attached a small view on the browser where you can see the suppressed Planes.

View 2 Replies View Related

AutoCAD Inventor :: Create WorkPlane By Point And Line

Apr 5, 2013

I am trying to create a workplane by a point and a line.  I can do this maually, but have not been able to reproduce this in code.

BTW: I realize I can create a fixed workplane by using the point, the edge, and an edge perpendicular to the edge, but I cannot have this as a fixed workplane.

View 6 Replies View Related

AutoCAD Inventor :: 2013 WorkPlane Edit Dimension

May 19, 2012

I have three workplanes.  All three were created the same way (offsetting an existing workplane).  I want to change the offset dimension.  I can on one of the planes, but on the other two, I have to "Redefine Feature".  There is no Edit dimension available in the menu.

One plane like this:

Two planes like this:

Why is it different?

View 3 Replies View Related

AutoCAD Inventor :: Rotate New Workplane Along A Default Axis With API

Nov 5, 2011

How do you create a new Workplane from a Defualt Plane and rotate it along a default Axis?I am new to API and trying to create workplanes and rotate them along a Axis.

Im trying to use "AddByPlaneAndOffset" is this the right method?

View 8 Replies View Related

AutoCAD Inventor :: Making Workplane With Export Object?

Feb 17, 2010

In Inventor, it is possible to mark a workplane with "Export Object", by rightclicking on the node. This make the workplane accessible when using the part as derived.

What is the programmatic access to the property? Can not find it on the Workplane object?

View 2 Replies View Related

AutoCAD Inventor :: Hide Workplane That Is Contained Within Clientfeature?

Oct 18, 2013

Is there anyway to completely hide a workplane that is contained within a clientfeature?

The attached part shows this when you hover over the client feature in the browser. I have the visibility of the plane turned off but it still shows up when the clientfeature is pre-selected.

View 6 Replies View Related

AutoCAD Inventor :: Best Way To Create A Workplane At Angle On Tube Surface?

Aug 1, 2013

What is the best way to create a workplane at a given angle on the surface of the tube. Imagine the workplane long and thin running along the surface of the tube. The angle will be a parameter (from a sketch or user).

I'd like the workplane to always be on the surface of the tube, even when the diameter of the tube (from a dimension in a sketch) changes.I'm thinking that a (angled) line in the same sketch as the two circles (which define the tube diameter and thickness) would be a good starting point.

View 9 Replies View Related

AutoCAD Inventor :: Select Drawing Sheet By Number

May 14, 2013

What is the code to select a drawing sheet by either its number or description but NOT both together?

Sometimes want need to select the first sheet by number 1 but the sheet description can change. and Sometimes we will need to select the sheet by its description but the sheet number may vary.

View 7 Replies View Related

AutoCAD Inventor :: Set Default IDW Template Used / When Select New Drawing

Dec 16, 2013

How do you set the default IDW template used when you select 'New Drawing?'

View 2 Replies View Related

AutoCAD Inventor :: Find Intersection Point Between Line Segment And Workplane

Aug 31, 2011

I have to create a hole (extrude) in a wall part in my assembly document where a stack will be installed.

To determine where, I verify if a line segment pass through the wall (XY Plane).

But I get an error with the command: IntersectWithLine

Here's my

 Public Function IntersectionPoint(ByVal app As Inventor.Application,
ByVal wp As Inventor.WorkPlane) As Inventor.Point
Dim oTransGeom As Inventor.TransientGeometry = app.TransientGeometry
Dim startPoint As Inventor.Point = oTransGeom.CreatePoint(Me.StartVertex.X,
[Code] ......

View 2 Replies View Related

AutoCAD Inventor :: Styles - Select Dimension Type For Whole Drawing

Jan 19, 2012

We have created one Style, but within this Style are two Dimension types (Dual and SIngle)

When a drawing from a model is created it defaults to the Dual Option and we can only select the Single Dimensions by individually selecting the Dimension and editing to Single Dimension, which can be time consuming.

Is there a way to select the Dimension type for the whole drawing?

View 2 Replies View Related

AutoCAD Inventor :: 2013 Drawing Environment Select Other Question

Apr 24, 2012

In the Inventor 2012 drawing environment when multiple objects were present I would pause the curser and use the wheel on the mouse to select the object and click the green check mark to dimension a part.

In Inventor 2013 the objects will scroll using the wheel but the green check mark don't show up.  How can I select the correct object I want to dimension to?Has the behavior of the select other function changed in Invnetor 2013 or is this a bug?

I'm dimensioning to a mid point of a line that has a center line over it.

View 2 Replies View Related

AutoCAD Inventor :: 2014 ILogic Rule To Change Visibility Of Workplane Selected In Browser

Oct 4, 2013

I want to be able to have All Work Planes set as 'Invisible' but create a Message.box or Icon that allows me to change the Visibility of any individual workplane(s) physically selected in the browser.

A rule written by another member should do the trick if the following line could be altered so as not to read 'For Each' oWorkPlane but instead for 'Each Selected' oWorkplane.

'For Each oWorkPlane In docFile.ComponentDefinition.WorkPlanes' 

'get user input
oInput = InputRadioBox("Select workplane visibility:", _
 "Turn ON workplanes for all components", "Turn OFF workplanes for all components", "False", "iLogic")
'Define the open document (top level assembly)
Dim openDoc As Document
openDoc = ThisDoc.Document

[code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved