AutoCAD Inventor :: Change Camera For Drawing View?
Aug 24, 2011
We are sometimes faced with the problem that we would like change the coordinate system of the model and have the drawing update it with the new orientation of the part without the need to place every annotation again. This is mostly for legacy parts and assemblies which are not modeled correct according to the coordinate system of the machine.
The following sample code does not work, is this by design or is there an error in the code?
Public Sub RotateFirstView() Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument Dim oDrawView As DrawingView Set oDrawView = oDrawDoc.Sheets(1).DrawingViews(1) Dim oCamera As Camera Set oCamera = oDrawView.Camera Debug.Print oCamera.ViewOrientationType = kFrontViewOrientation oCamera.ViewOrientationType = kIsoBottomLeftViewOrientation oCamera.ApplyEnd Sub
Inventor Professional 2012 SP1 (25 seats with subscription)
Windows 7 64 bit
Lenovo D20, 12 GB RAM, Intel Xeon X5687 3.6 GHz, SSD
Quadro 4000, driver 8.17.12.9573, dual monitors
SpacePilot, driver version 6.15.3 Firmware 3.12
View 4 Replies
ADVERTISEMENT
Jan 28, 2013
Is it possible to change the text height of a drawing view label through VBA?
I have tried to change it by creating a new text style manually with the text height I require and then through VBA set the view label to use that style.
The View label takes on the new style but does not change the text height.
I have tried to use 'StyleOverride FontSize=' but I have text that is multi lined and using this command converts all my text onto one line.
Is it possible to change the text height of a drawing view label through VBA?
Below is my code so far,
Sub HoleDetailSheetLabels()
' Declare the Application object
Dim oApp As Inventor.Application
' Obtain the Inventor Application object.
' This assumes Inventor is already running.
'Set oApp = GetObject(, "Inventor.Application")
[code]...
View 3 Replies
View Related
Jul 22, 2013
I am trying to piece together some code for an ilogic rule. This rule should look for a drawing view that is a flat pattern, if it finds one it should change the object layer to our "CNC" layer.
View 3 Replies
View Related
Jan 8, 2014
In Inventor 2013 it was easily to switch in a drawing view between different iPart members. Through Edit view => Tab Model State and then it was possible to switch between different iPart members. So it was easy to make a copy in the Vault from only the dwg (from a iPart member) and then change the iPart member. Now in Inventor 2014 it is not possible anymore.
View 1 Replies
View Related
May 6, 2013
Is it possible to have the parent view for the section in one drawing and the child views in another drawing?
View 2 Replies
View Related
Sep 27, 2013
After upgrading to Inventor 2014 we notice that the graphics do not work properly, and that the overall performance in drawings and modelling bad compared to 2013. Then we installed SP1 and now drawing views are disappearing, however when we select "shaded" view the view reappears and works perfectly..
Any workaround regarding disappearing views?
View 3 Replies
View Related
Nov 25, 2008
Each time when I place a part in base view, have to follow few steps; go through view label, format Text, than choose type option - [Properties-Model] and its property - [Part Number], than placing dimensions. it takes long time and very repetitive, especially, when placing a hundreds of parts and I was wondering if there is an option, to set up view label; [Properties - Model ]& [Part number], as a DEFAULT. So, each time placing a part, in base view it will come up with correct label. Also, overall dimensions, can it be retrieve using parameters of the part?
View 4 Replies
View Related
Aug 23, 2012
I'm trying to retrieve a Camera Object for the "Home View", without setting the view to Home.
I use the "UserInteractionDisabled=true" in a addin to make sure the user doesn't mess with the inventor while my addin is doing some time consuming work.
When documents are open in this mode, the view is set to front. The only way I have found to get the camera for Home View, is to use the GoHome method on the ActiveView, but this is slow since it is running an animation...
Roughly im doing the following:
Inventor.UserInterfaceManager.UserInteractionDisabled = true;Document invDoc = Inventor.Documents.Open("c:\somefile.ipt");View v = invDoc.Views[1];v.GoHome(); //would like to not do this, it is animatingCamera cam = v.Camera;//cam.ViewOrientationType = ViewOrientationTypeEnum.kDefaultViewOrientation; //<- this will fail.. Point eye = cam.Eye; Vector up = cam.UpVector.AsVector();Point target = cam.Target;
Is it possible to get the Camera object for Home with "going" home?
View 4 Replies
View Related
Apr 25, 2013
I have created a presentation file. When I record it and open up the media file only half of my model is seen throughout the video. Is there any way to widen the camera view?
View 9 Replies
View Related
May 10, 2009
Just got a Space Navigator the other day, pulled it out of the box all excited that i would be able to rotate models about the center of the camera, which would allow me to get into really tight spots, rotate the model and not have other parts of the model move in front of the camera, therefore blocking my view of what i was trying to see. So out it comes, all software loaded, inventor is open with a tidy structural assembly sittign there waiting to be manipulated by my new shiny toy, and uh no. CAN'T ROTATE ABOUT THE CAMERA! AARRGGGH. right bummer.
I'm pretty sure its an Inventor problem since i know for a fact that you can rotate about the center of the camera usign this device in 3ds max. The 3D navigation tools in inventor are crap anyway, the feature of being able to rotate about camera center should be native in inventor.
using any of 3D connexions devices in Inventor and maybe they have a work around for this. I'm pretty sure i read somewhere that with practice people have been able to 'fly' down pipes in Inventor. But my experience so far would mean that once you get to a bend in the pipe and you rotate the view, you would just rotate yourself straight out of the pipe.
View 9 Replies
View Related
Oct 8, 2009
I'm using inventor 2010, In studio mode, I adjust the zoom or view that I want my camera to end with, when I click "Add camera action" bottom, that zoom change in or out,
View 1 Replies
View Related
Jul 8, 2013
I have a spreadsheet and iLogic driven mater assy to generate different iterations.
I would like to change the scale of a base view on a drawing based on a parameter in my assembly. The idea is to get iLogic to change the view using a simple If / Else statement.
This is what I tried:
If Parameter("0 Generic Assembly v2.2.iam.BP") < 1570 Then
ActiveSheet.View("VIEW1").Scale = 1/8
Else
ActiveSheet.View("VIEW1").Scale = 1/10
EndIf
So basically the value of "BP" parameter (excel parameter in my assy) would drive the scale of the views. But its not working. Is it actually a sensible method? Can I use in the drawing environment the excel parameters in my assembly?
This is the error message I get when the rule is run:
"Error in rule: View Scale, in document: 0 Generic Assembly v2.2.idw
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
Also using the same thinking I use iLogic to populate the drg number field on the drawing based on an excel parameter. The rule works but does not always updates the drawing no upon the parameter change or update/rebuild commands.
View 1 Replies
View Related
May 9, 2013
I'm working on a Isometric drawing and im trying to dimension the view. I keep the original view there and cut another of the same view and place that cut view over the original, so I have something to snap to while dimensioning.
Every time i go to place the cut view over the original and i always grab the wrong view and move it and I am wondering if there is a way to pin the original view in place permanently?
View 6 Replies
View Related
Sep 6, 2013
Is there a way so that when I make a view in a drawing,
it shows up by default with all it's real lines, instead of having to select the options all the time...
View 5 Replies
View Related
Jan 31, 2012
For inventor drawing, is that possible to copy a view from one drawing to another different drawing?
View 2 Replies
View Related
Sep 11, 2013
i have assembly and i want make drawing of part of it. Part of assembly i want to show/draw is between two parallel planes. How can i do this?
I'm using inventor 2010.
View 2 Replies
View Related
Jan 3, 2012
I've got a macro which is creating .ipt and .idw files from templates. I'm once created I'm replacing the reference in the .idw to refer to the newly created .ipt file. The problem is that the drawing view isn't updating... I've make the .ipt file dirty then udpate the drawing, but that hasn't worked. I've tried just using the drawingdocument.update function, but that hasn't worked either...
View 6 Replies
View Related
May 31, 2011
I have a 3/4 sectioned view rep (Locked) in an assembly. On a drawing, When I select the correct view rep,
- I don't get the save view orientation ( though It show/hide the correct parts). I was expecting this because I had locked in 3D
- I don't get to see the 3/4 section.
View 2 Replies
View Related
Jul 11, 2013
Is it possible to rotate a drawing view using iLogic?
View 2 Replies
View Related
May 24, 2012
In the continuing persuit to learn Inventor, of this selection in the drawing view editor?I have noticed one thing. When it is checked it turns off the visibility of parts within an assembly view.
View 9 Replies
View Related
Oct 18, 2011
I have an assembly that is derived from a solid body part. The assembly can rotate in the part hence the .iam that was created using Make Components also rotates. The trouble is I need to make a template drawing showing the assembly in the same position all the time.
Is there a way to make a base view always look at a surface and follow that surface so that the view on the drawing always looks the same?
For example: If I had a dice and I create a base view of the two dots side of the die. If I roll the die I still want to see in the base view the two dots side of the die in the same orientation.
View 9 Replies
View Related
Sep 3, 2013
Having this dialogue box pop up every time i print. Not sure what a raster view is and how I should be turning it on /off.
View 6 Replies
View Related
Nov 8, 2011
I am using this code to turn visibility of components off in IDw file, what I need top turn visibility of a component of in a subassembly.
'oDrawingDocument = ThisApplication.ActiveDocument
'Get the first view
'Dim oView As Inventor.DrawingView
'oView = oDrawingDocument.ActiveSheet.DrawingViews.Item(2)
[Code] .........
View 2 Replies
View Related
Dec 24, 2013
I am trying to align two views horizontally with I logic, (view 1) and (view 2) but I am not sure what the syntax needs to look like.
I know that I need to import the Drawing view Alignment Enumeration, but other than that I don't know what to do, can some one post an example of how to align views with I-logic.
View 2 Replies
View Related
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
May 21, 2013
Is it possible to get the "actual" calculated area of the face of a part from a drawing view? I looked at the drawing view object in the api but didn't find what I was looking for. What my goal is, I want to calculate the actual square foot of this piece and then subtract it from the overall square foot so I can calculate waste. Perimeter's of pieces can be in multiple forms, radial, straight or a combination of the two. See image below.
View 1 Replies
View Related
Aug 9, 2011
For Inventor 2012? IV2012
Windows XP SP3 32-bit
Intel Core 2 Duo 6400 @ 2.13 GHz
Nvidia Quadro FX 3450/4000 SDI 256MB Vram
2 GB Ram
160GB HDD
View 9 Replies
View Related
Aug 1, 2012
Is there a way so that in the window Detail View,
I will permenantly get a
Fenche Shape: rounded
cutout Shape: Rounded
Disyplay full Detail Boudary: at on
Display connection line: at on
Unless, I have to change them each time...
View 1 Replies
View Related
Nov 5, 2013
I have two problems with a IDW drawing.
Most of my views have been crosed over by a red line in the Model browser window (se attachment) What does this red line meen?
Also, all the views with the red line have been set to Raster View Only. I can untick it without problems, but when I click OK and reopen the dialog the checkmark is back on.
How come inventor turns this mark on by itself?
Using Inventor 2014 64-bit
View 9 Replies
View Related
Apr 15, 2013
I have a drawing view with many recurring instances of the same part. I want to include the "XY Plane of each of these occurrences using the API. My code appears to be correct but the projected planes just won't show up. I get an error when I try to include the plane that is not normal the the view so I know it is doing something.
View 1 Replies
View Related
Oct 7, 2011
Is there a way (IV2012) to have the drawing view default to 1:1 when inserting a detail into the sheet? Now it tries to select a scale based on who knows what.
View 8 Replies
View Related