AutoCAD Inventor :: Rotate Drawing View Using ILogic
Jul 11, 2013Is it possible to rotate a drawing view using iLogic?
View 2 RepliesIs it possible to rotate a drawing view using iLogic?
View 2 RepliesI have successfully been able to rotate the drawing view. rotating the view label.
View 1 Replies View RelatedLike the title says I am looking to place views (and dimensions) on drawings using ilogic. I am new to both inventor and ilogic, most of my training came in SolidWorks. It needs to pull the part from an ipart that pulls the information from an excel file.
View 1 Replies View RelatedIs there a line of code that will look at a drawing view and turn shading on?
I have tried
ActiveSheet.View("VIEW1").View.Shaded = True
but it didn't work .
what i am trying to do is create an iLogic rule that if your drawing view scale is set to the following ...
1:1, 1:2, 1:4, 1:8, 1:12, 1:!6, 1:24, 1:32, 1:48, etc. on the view label for that view it will diplay ...
SCALE: 1/2" = 1'-0"
and so on for the rest for the standard scale factors.
i know it will be some sort of a loop and it needs to check all views when ran for any changes.
i have never done any coding for the drawing side of inventor yet only model coding
is there any way using iLogic or other method to automatically control the size of the 'break' in a drawing view? I have built a model which uses iLogic to control virtually everything, however the large variations in the length of the product mean that there are some interesting results when it comes to the broken drawing views updating.
it would be nice to locate the break at the absolute center of the view and then size it as a percentage of the view size along one axis or perhaps according to some other length based rule.
Dell Precision M6400 - C2D 2.66 / 8gb / Quadro FX3700M / Win 7 Pro x64
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 RelatedI'm trying to do this with iLogic, and i'm not getting anywhere. What I need, is to be able get to the iProperties of an associated model that is referenced into a drawing file. I want to make it easier to update the iProperties from the drawing file, without having to open the model file.
Factory Design Suite Ultimate 2012
AutoCAD 2012 | Inventor Professional 2012 | Vault Professional 2012
Currently have an iLogic rule in my drawing template that base on user input brings up the Drawing View dialog box (as though you click on base view). I want to know if there is some coding I can do to control or handle what happens if the user clicks the cancel command inside this dialog box. Possibly show a message box. Or even run another rule after the cancel button has been clicked?
View 1 Replies View RelatedI have a drawing in dwg that's drawn vertically. By that i mean the texts seem to have been rotated at 90 degree. It's drawn by someone else. I darenot rotate it back fearing i might stuff up the coordinates. But it's hard to see as i need to bend my head to be able to read the drawing and all the texts in it.
Is it possible that without rotating the actual drawing, we can actually somehow set it to something more readable for example, rotate it back to vertical kind of angle. I heard it can be done with view. But i just don't know how to do that.
I use autocad LT 2005.
how can i rotate a drawing view in model space and paper space? UCS -> new -> 3 point -> and saving the view works, but trying to figure out how to do this with paper space now. My purpose if for pulling construction lines from plans, for elevations. In the past I simply rotated the drawing, but if i had a layer turned off it would mess up their positioning.
View 1 Replies View RelatedI know it's not possible to do that like in Photoshop (I have submitted a feature request).
How do you handle this problem when drawing with a tablet?
In 2013, just placed a view in an idw. Now I need it rotated 90°. In pre2012, there was a rotate Horizontal and Rotate vertical command where we could pick the edge and it would align to it.
Has that been taken out of 2013 or am I just overlooking it? Restarted Inventor and that didnt work. I did not restore the marking menu because I have some customizations that I dont want to lose.
For what its worth, Wiki help shows the "Rotate View" command in the video..... maybe I don't have the full version...IDK. Looks like I am missing several commands here, like Apply Design View.
I can only get horizontal or vertical 'orientation' in "Break" view.
How do I rotate it to say 60degrees to use on an iso view?
I wish to rotate my "entire view" to fit the portrait style.. idw. Well, the base must be rotated but I forgot the rule. [URL]
View 9 Replies View Relatedis there a way to tell Inventor to align the view to be perpendicular to the Origin axes when View Face or Sketch on face is selected?
It is most disturbing to have to work with the view cube once in the Sketch just to have it make sense?
This is in Inventor Pro 2012.
Is there any way to use the "Rotate at angle" command outside of the "custom view" environment?
Is there actually any technical reason why the controls in the attached screenshot are not available in the Studio and normal modelling environments?
Is there a way to get the "view type" of a view using iLogic? for example;
-detail view
-section view
-exploded view
Or any way to differentiate between the types of views? I'm trying to write a rule that renames all detail and section views in a drawing in Alphabetical order. A,B,C,D..
Is there Any code out there that will allow user to select part file then isolate and create view rep of that part with name of view rep the same as part.
The reason is we have lots of reps that isolate various components and this is very time consuming, I have had a look if there is Any customization because this would be a good user tool,also could work very well on assembly.
ILogic code ,I have had some code done to isolate selected parts in a assembly file that has a specific custom property filled in i.e. : DESC2.It then creates view reps and locks down giving the rep name the same name as part.
What I am after is some code that will place these isolated view reps as views on my dwg that the assembly resides in.With the functionality of picking face to show plan view of parts.
I have been looking around but have not been able to find examples of how (If I can) set the model views via iLogic.
What I am trying to do is to have the view change from "Master" to the view I have created for each part, so when I go to create drawing all I have to select the right view and the part changes to match view.
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 RelatedAfter 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?
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 Relatedhow to rotate an assembly drawing using vba codes?
View 4 Replies View RelatedI kept the code simple
fname = ThisDoc.FileName(False) 'without extension fpath = ThisDoc.PathoPartDocPath = fpath+""+fname+".ipt"oPartDoc = ThisApplication.Documents.Open(oPartDocPath, False)oDrawDoc = ThisApplication.ActiveDocument oSheet = oDrawDoc.Sheets.Item(1)oTG = ThisApplication.TransientGeometryoPoint1 = oTG.CreatePoint2d(5, 5)oBaseView = oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint1, DrawingViewScale, kFrontViewOrientation, kHiddenLineDrawingViewStyle, "Default")
it is a local rule in an idw file that has been saved with an ipt file of the same name saved in the same directory. Now I get the most useless error message ever devised by manking
"The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"
I am using a number of sketches in a skeleton to control multiple solutions.
I am using case statements that apply values to my variables and create my solutions which is working fine however,
for clarity of what is being used in a given solution I want to turn on/off the sketches in my code. I have created a set of model views that when active properly turn off the visibability of the appropreate sketch.
While model view is among the things that can be selected for use in the code, so far as I can tell, I can not find a function that will allow me to set a view true so that it activates the view and my sketches turn off.
Is there code for changing the color (or other properties) of the visible edges of a component in a drawing view, the same way I can do it manually by right-clicking a component and choosing Properties?
I wrote this rule to change the color of each individual drawing curve:
Edit: Ignore the "<!". It's the only way I could get the iLogic code to successfully post in the message
Spoiler (Highlight to read)<!Dim drawViews AsDrawingView
For Each drawViews In ThisApplication.ActiveDocument.ActiveSheet.DrawingViews
occ3 = drawViews.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.Occurrences.ItemByName("GF_Plenum:1")
Dim newColor3 As Color
newColor3 = ThisApplication.TransientObjects.CreateColor(0,255,255)
[code]....
I have a iLogic question about finding out if a View exits..
Lets say I have a drawing that I want to read the scale of a view.. All the snippets I have found is pointing to the name of the view like "VIEW1". But if I have deleted the first view I created it will give me an error..
So, is there ant possibility to check if the "VIEW1" exits without getting an error?
I am trying to rewrite Curtis Waguespack's ilogic code to modify drawing view labels from this post http: [URL]...
The completed label should appear like this
<Description> - Mk <Part Number>
Est Unit Mass = X kg
(Scale 1:1)
At this point I have 2 problems
1. I want to add the physical mass to the second line and would prefer to use the calculated physcial property rather than the a custom iproperty. If editing the view label, it would the property access under physcial properties.
2. I want to rewrite the code so it is selective or per view - in otherwords, I only want it to modify a single view I select once the code is run. At this point I know I need to remove the For loop but I dont have a clue as to how to make it selective.
'start of ilogic codeDim oDoc As DrawingDocument: oDoc = ThisDoc.DocumentoModel = ThisDoc.ModelDocumentDim oSheets As SheetsDim oSheet As SheetDim oViews As DrawingViewsDim oView As DrawingViewoSheets = oDoc.SheetsFor Each oSheet In oSheetsoViews = oSheet.DrawingViews For Each oView In oViews oView.ShowLabel = True
[Code] ......
when open an assembly not all parts are shown. To be able to see entire assymbly need to change View representation to Master manually. How to achieve this in Ilogic?
View 5 Replies View Related