AutoCAD Inventor :: ILogic Automatic Drawing View Scale Label
Apr 17, 2012
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
View 6 Replies
ADVERTISEMENT
Nov 19, 2013
I have successfully been able to rotate the drawing view. rotating the view label.
View 1 Replies
View Related
Jan 6, 2010
It is possible to put scale on drawing in inventor 2010? If is how?
View 4 Replies
View Related
Nov 13, 2013
I am currently working with fx parameters and iLogic to drive a model and it's corresponding drawing to change based on a single user parameter.
I have managed to get the drawing to update both the scale of the views I need and the size of the sheet with the change in parameter using the following rule:
IfParameter("EB75551.ipt.Rise")<1801Then
ActiveSheet.ChangeSize("A1", MoveBorderItems :=True)
ElseIfParameter("EB75551.ipt.Rise")>1800Then
ActiveSheet.ChangeSize("A2", MoveBorderItems :=True)
EndIf
However when i attempt to use this with the title block using the function:
ActiveSheet.TitleBlock="My Title Block"
in place of the sheet change size it brings up the error message:
Error in rule: Drawing Title Block, in document: Drawing
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
I have read elsewhere that this is due to me having prompted entries for the scale and drawn by fields, however when i use the function designed for prompted entries: ActiveSheet.SetTitleBlock("Other Title Block", "promptedEntry1", "promptedEntry2")
It fills in the prompted entry fields from the code and if i change these entries in the "edit field" option they are overwritten when it is updated.
Is there a way have the prompted entries when you open the drawing fill in the "promptedEntry1" field in the rule so that I can use the rule? Or am I going about it the wrong way?
I should point out i'm new to iLogic and no-one in my workplace can use it so each person changing the "promptedEntry1" field to the scale they wish isn't a wise move.
View 2 Replies
View Related
Sep 18, 2012
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] ......
View 5 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
Apr 18, 2013
I'm trying to put together some iLogic code to either check all the drawing views within a drawing sheet are all the same scale, or make the views all the same scale. These drawing sheets consist of a number of individual parts (they aren't projected views from a single part).
This is for welded assemblies. We are required to generate a profile drawing sheet outlining each part that makes up the assembly. We send these out as dwg files for laser cutting so its important that the views are all the same scale.
View 7 Replies
View Related
Nov 16, 2010
I have a piece of equipment that changes from 24" to 96" with 5 discrete sizes. I am using ilogic to make all the changes required to the part. Any way that I can change the scale of a drawing using iLogic so that it fits better on my drawing and be adjusted every time. I have multiple pages that most of the drawing views need to be changed every time.
View 9 Replies
View Related
Jul 2, 2012
Is there a way to convert an Inventor 2012 view scale from "0.5" to "1:2" or similar within an iLogic rule? I can extract the main view scale and plug it into a variable but the format isn't correct for the drawings I'm creating.
View 2 Replies
View Related
Nov 21, 2013
I have often problem with drawing view labels. When model is changed and I switch to the drawing then the label is moved to an random position. There is possible to little move with view, or edit label text or switch off/on label and label move back to correct position. This is very unpleasant when there s more views in drawing, is necessary to correct each label.
This happen in Inv2013 and also in Inv2014.
Is not there an possibity to minimize this?
Enclosed is example video.
View 3 Replies
View Related
Sep 16, 2013
We put several parts on a single drawing sheet and ,to include the part number in the drawing view label, we must edit each view label and change the type to Properties_Model and the Property to Part Number. Is there a way to set the default of a drawing view label to include the Part Number? I tried modifying the styles to include <PART NUMBER> but it the text "<PART NUMBER>" came in instead of the value. To get the value, I had to edit the view label and hit the X with a down arrow to get the part number to show up, which is not much different than having to edit the label and change type and property. I'm looking to avoid all the view label editing as much as possible.
View 9 Replies
View Related
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 11, 2013
Is it possible to rotate a drawing view using iLogic?
View 2 Replies
View Related
Jul 31, 2013
Like 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 Related
Jan 22, 2013
Is 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 .
View 6 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
Jan 17, 2013
I can control the size of my main drawing views using ilogic based on the models extents as there is a direct relationship between a parts length and the drawing view width. however, I have several isometric views that I scale according to the model size but in certain configurations of my model the ISO’s are completely the wrong scale for that particular view where the main views are ok.
I have a set area on my drawing sheet for the iso view and it would be more beneficial to control the size of the view rather than the scale of the view. I can read the height and width of a view so why can’t I control the size of a view but the height or width?
View 1 Replies
View Related
Feb 24, 2011
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
View 9 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
Jul 11, 2013
I'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
View 2 Replies
View Related
Apr 18, 2012
Is there a way that we can set the view label in the style library to show custom/user Properties?
We have set our iam/ipt templates to have some custom properties which we wish to display in the view label when the view is created however there this no way to add these properties to the label.
I find this a little strange as you can add these user Properties to the parts list in the style library? (I've added some screen caps to show what I am talking about)
View 8 Replies
View Related
Jan 30, 2013
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 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
Nov 6, 2012
Dont have a before print Event Triggers . I want to make a rule with automatic print with a right sheet size, but in all my try don't work
that is my last one
'Dim oDraw As Document
oDraw = ThisApplication.ActiveDocument
oDrawDoc = ThisApplication.ActiveDocument
oDrgPrintMgr = oDrawDoc.PrintManager
[code]........
View 9 Replies
View Related
Sep 12, 2011
How to make Automatic Update propeties for Flat Pattern Extens. I have write code and setting rules trigerred by event (Before save, Any model Parameter Change) but if some parameter change properties isn't automatic update. So could some one tell me how to solve this problem.
Part with iLogic code is attached
View 9 Replies
View Related
May 19, 2013
I have one problem in ilogic i developed the model using ilogic rules and dimension values updated through the User interface form.
problem is while entering the values in UI, model updates automatically, but I want to stop automatic update and after entering the all the parameters in the UI then click the done button only update the model.
My UI is like this
It's possible.
View 3 Replies
View Related
Mar 19, 2012
Is there a way to turn off automatic isometric view when returning to the model from a sketch view (in 2012)?
View 5 Replies
View Related
Aug 22, 2013
How does it work? I see in the properties after I high lite it. Annotative Scale no/yes. We xref one drawing into other drawing and the view scale changes. will my hatch look the same or will the smaller view scale look really big in the drawing.
View 1 Replies
View Related
Mar 21, 2012
I am working on an architectural drawing and for some reason when I try to "objectscale" the annotation to the same scale as the view port I am using, it doesn't appear or if it does it is a lot smaller scale than I requested.
View 4 Replies
View Related
Mar 13, 2013
I've been making iLogic assemblies with hints of VB for about 6 months now. My Boss has asked me if I can write code that will effectively create drawings automatically.
What we would like to create is a rule, which when run, creates a new drawing file, places the active assembly in a base view, then place a Left, Right and Top view of the assembly and place a parts list in the top corner. Dimensions are not really important at the moment, as the sizes of the parts are in the description field and the drawings are used for assembling the product only.
View 2 Replies
View Related
Nov 26, 2012
Is there an option somewhere to stop Inventor automatically rotating the view when I create or edit a sketch?
View 2 Replies
View Related