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


ADVERTISEMENT

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 :: 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 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 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 :: 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 :: 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 :: ILogic Select Face In Assembly

Mar 6, 2012

I need to be able to pick a face on a part in an assembly inside a iLogic rule. How can I set up the events to suspend the code to have the user pick the face?

View 6 Replies View Related

AutoCAD Inventor :: Change Select Set Face Colour Simultaneously?

Mar 19, 2013

Is there any way to change the colour of all faces in a select set simultaneously?

The method I am referring to is when you select faces in a part document, rickt click and select properties from the context menu, a dialog box pops up called "Face Properties" which prompts you to select a colour and click OK. when this is done all of the faces are changed at once.

How do I replicate this via the API?

Currently I have it iterate through each face in a part document and apply the colour override one by one which can take a while when there are about 1000 faces. You can see each face changing as you go.

View 3 Replies View Related

AutoCAD Inventor :: Select Component Priority No Longer Shows Face / Edge Preview

Dec 12, 2011

This has happened since I updated to 2012 Professional.  When I want to use the measure tool or add constrains in assembly mode, the face/edge preview does not show up in red under Select Component Priority.  I have to wait for the select other option to come up to see which face I am on.  If I click on the face or edge it will show up but not until I do.  I don't remember changing any settings that would cause this.  I could have the select other option delay set to zero or I could change it to another selection priority but I don't remember having to do that before.

View 2 Replies View Related

AutoCAD Inventor :: Create Sketch On Face For Extrusion?

Jul 25, 2008

I am trying to create a sketch on a face for an extrusion. The sketch has a text box. I am having trouble excluding the text in a sketch otherwise all the closed geometries of the text get extruded.

I created an objectCollection and excluded the TextBox objects. Still not working.

View 6 Replies View Related

AutoCAD Inventor :: Create Human Mask For Humanoid Face

Apr 5, 2013

We intend to create a human mask for our humanoid face.  Wonder where I could download a CAD model where I could thicken the surface to form the mask.

View 6 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 :: Option To Merge Bottom Face Of Pad Eye And Pipe Curved Face

Oct 15, 2012

There is any option to merge bottom face of pad eye and pipe curved face... Something like

1. Extrude face to a surface  or
2. like notch option available in frame generator ?

N:B - pad eye is made by extrusion and pipe made by frame generator.

View 2 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 :: Merging Circular Face To Flat Face

Aug 22, 2012

All I need to do is merge a circular face to a flat face, so both faces become one continuous face. Is this possible at all?

I have a attached a screenshot to show what I mean. Face 1 needs to be merged with face 2. This is so if I constrain anything to that face it will constrain to the entire face and not either the circular face OR the flat face.

View 3 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 :: 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 :: 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 :: 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 :: 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 3D :: Select A Hidden Face?

Apr 16, 2011

Using autocad 2008

There is a cube.

Solidedit --> Face --> Extrude

I place the pickbox on the front side of the cube, press down Ctrl which highlights the front face, then while still pressing down Ctrl, I press space bar to make the highlight jump to the back face. But when I click it with the mouse, the front face gets selected!

View 1 Replies View Related

AutoCad 3D :: Way To Select Solids By Their Edges Rather Than Face

May 21, 2012

In any given shaded visual style, is there a way to select solids by their edges rather than the face? Ideally I would like to have X-Ray visual style turned on and be able to select objects in the background through objects in the foreground. This used to be possible in AutoCAD 2006, but I can't find any variable in AutoCAD 2011 to achieve this.

View 9 Replies View Related

AutoCad 3D :: Select Particular Face Of Tank Upon Which Want To Align UCS

Mar 2, 2013

I have been able to draw the precast concrete tanks I needed. I drew several models and saved them as WBLOCKS to insert in new drawings. The problem is that I don't seem to be able to select a particular face of the tank upon which I want to align the UCS. What am I missing with regard to blocks and UCS alignment?

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 3D :: Select Mesh Face To Split Failed

Jan 15, 2013

Say I draw a mesh sphere and I do the Split Mesh Face. Why am I fail to select the mesh face to split? It only allows me to pick the lines.

View 1 Replies View Related

AutoCAD Inventor :: Loop Select Sketch To Create Boundary

Sep 26, 2011

I am not sure exactly why this is a limited feature of Inventor 2011 but when you want to select a sketch to create a boundary patch you have to select each part of the sketch in sequence.  It's a pretty laborious task.  I am looking to a way to automate this using i logic. 

View 5 Replies View Related







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