AutoCAD Inventor :: ILogic Rule To Switch Units In Drawing Between Imperial To Metric
Apr 22, 2013
I would like a few rules to be triggered once the new drawing template is opened.select sheet size, I have been given a rule that already works, basically the rule selects a border and title block based on sheet size selection.
trigger = iTrigger0iLogicForm.Show("BorderChange", FormMode.Modal)iLogicVb.UpdateWhenDone = TrueIf Parameter("BorderSize") = "A0" Then ActiveSheet.ChangeSize("A0", MoveBorderItems := True)ActiveSheet.TitleBlock = "MJTD A0"ActiveSheet.Border = "MJTD A0.
[code]....
I would also like a rule to let me annotate in metric or imperial. this is where I require assistance. I am not sure the best way to achieve this rule. My programming is very basic.I have found some links here, but I can't seem to make them work in the drawing environment. Also these rules seems to change the units of an already created .ipt.
Rule #1 Link
Rule #2 Link
I am just looking for a rule to select either .in or mm from the styles library(i think) , before I even place a base view. Regardless of the original units used to make the model.
View 2 Replies
ADVERTISEMENT
Sep 13, 2013
We have some machines which seem to work in imperial maesurement a dn others which work in metric. it is frustrating when trying to insert a map block that is metric and is inserting into a drawing which is set up as imperial. We have tried using the - dwgunits to change to mm, and then using insunits , insunitsdef source and insunitsdeftarget to 0, this works when the PC is currentyl in use. when shut down and restarted it reverts back to imperial setting.
Am i right in thinking this is something that needs to be done at the software installation stage to make it default to metric everytime?
View 3 Replies
View Related
Apr 15, 2011
AutoCAD 2010
Wondering if there's a way to enter imperial units in command line of a metric drawin and have it convert imperial to metric.
IE. I'm constantly taking field site dimensions in imperial and it'd be useful if i didn't have to do conversion every time.
View 8 Replies
View Related
Jul 29, 2012
ilogic for converting dimensions imperial to metric form in sketch, part and assembly level
I have one task in this total models(parts and assemblies) having imperial dimensions but customer wants total dimensions in metric form with rounded value.
mean while all the dimensions directly convert to metric form dimensions are having many decimal places but customer wants ronded value like for example <1.5 is 2 and >1.5 is 1 like this. one more example is 2.56 is 3 and 2.46 is 2 like this.
View 1 Replies
View Related
Nov 20, 2013
When in a drawing how do you switch between Imperial and Metric. It seems like it would be such a simple process? When I try to go to Options > User Preferences > Scale List Edit and change it, I then hit apply get back into options and it is switched back to Imperial ? I am basically trying to get this scale list format 1:10, 1:20, etc. instead of 1/4"=1'0", 1/2"=1'-0", etc.
View 8 Replies
View Related
Mar 22, 2012
I'm trying to determine what my base units are in any drawing that i'm in (In modelspace). Essentially i want to either just read out the current base unit, or simply determine metric or imperial...or even both. I've been browsing through the forums and i've found a few examples, but nothing too detailed. Here is what i have so far, i have a feeling i'm on the write track. Is it possible to read out the value of "PlotPaperUnits"?
namespace UNITTEST {
public class UNITS {
[Autodesk.AutoCAD.Runtime.CommandMethod("UNITS")]
public void UNITSCOMMAND() {
Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
[Code] ..........
View 8 Replies
View Related
Apr 18, 2013
There wasn't a metric template so I created one. I've also been working on setting up Annotative and Dynamic Blocks. Mostly we work in Imperial and so the blocks were drawn in Imperial units.
When I insert some of my Annotative Blocks (Section marks and Labels, etc.), some insert scaled up 25.4 (which is what I want) and others don't.
Take the attached examples:
SOIL-Gravel.dwg is not Annotative. Insunits is set to 1
NOTE-title.dwg is Annotative. Insunits is set to 1.
I notice on my Insert Dialog Box that the Block Unit Factor changes from 25.4 (SOIL) to 1
(NOTE).
For some reason NOTE-Section Cut (Annotative) inserts at 25.4, but the Dynamic Parameters fail to scale up.
I've played around with INSUNITSDEFSOURCE and INSUNITSDEFTARGET, but neither seem to change. I understand they only work if INSUNITS of the block is 0. Which I have also toggled.
View 0 Replies
View Related
May 2, 2013
I received a .dwg file from S. Korea with dimensions and units all in the metric mm and I need the units to be in feet and inches. Is there a command to switch dimensions and units to imperial feet and inches?
Rather than changing units in command UNITS Inches and Architectural, and SCALE 25.4, is there any other way to switch metric to imperial systems. Scaling somewhat does the trick but, provided dimensions remain in mm.
View 3 Replies
View Related
Feb 13, 2009
Is it possible to indicate alternate units, imperial/metric?
View 3 Replies
View Related
Nov 25, 2012
I am after a rule to change the unit type of all .ipts from cm to mm.
This has to go down to all levels in hierarchy but only change .ipt files
View 3 Replies
View Related
Jul 25, 2013
I have just downloaded Revit 2014 and I can change my project units to metric from imperial but all my families are still in imperial, I was wondering how to change those to Metric too.
View 9 Replies
View Related
Oct 28, 2011
I have a rule in the .idw drawing template, that displays a dialog box asking for the size (A, B, C, D...). Once the size is selected, it displays the appropriate border and title block. There is a small & large title block, so an A or B size gets the small, and a C or larger gets the large. This works great.
My question is, how can I have the appropriately sized Revision Table (small or large), automatically ready for use, based on the drawing size? The (2) Revision Tables are defined in the Styles library.
Product Design Suite Ultimate 2014 | Vault Basic 2014 (SP1)
Dell Precision M6600 | Intel i7-2820QM - 16GB
nVIDIA Quadro 4000M | Windows 7/64 Pro
View 1 Replies
View Related
Jul 16, 2013
Within an IDW file, you can go to the Styles Editor, then click on a standard. On the General tab, there's a drop down for the unit of length.
Provide the code so that I can change this setting from Inches to mm with an iLogic rule?
View 2 Replies
View Related
Jul 12, 2012
To convert from imperial to metric multiply the length, in inches, by 25.4 (the number of millimeters per inch).
Example: 3 inches converted to millimeters is 3*25.4 or 76.2mm.
To convert from metric to imperial multiply the length, in millimeters, by 0.03937 (the number of inches in a millimeter). For greater accuracy use 0.03937008.
Example: 100 millimeters converted to inches is 100*0.03937 or 3.937 inches.
View 7 Replies
View Related
Aug 1, 2011
I have copied building from metric drawing to imperial template the template i use. Now I want to dimension it but impeial dimension are not equivalent to metric,which should be because building stays the same size, i can scale the building but i want to know if there is way to overcome this issue without scaling the building
View 1 Replies
View Related
Oct 18, 2011
I am using 2012 and i would like to enter my dimensions in imperial into a metric drawing with autocad doing an automatic conversion. So let's say i write this:
12'-8-1/2"
Autocad has to take it like that into the metric drawing then, he has to convert this to 3873.5 mm. Is there a code i can put into some autocad file to make this software work like that?
View 9 Replies
View Related
Jul 18, 2013
I have a rule setup for drawings. I need the rule to first determine if the there is a flat pattern view present. In other words, if there is no flat patter view, I want to the rule to stop.
I am very green to ilogic and VB. Running Inventor 2013.
View 2 Replies
View Related
May 14, 2012
I have one problem like conversion in this project involving things are converting total imperial dimensions in to metric while converting all the dimensions required in single precision like 15/16'' as .9375 mm but he need approximate value like 1 . I have large assembly how to maintain over all dimensions and how to change internal dimensions in simple ways.
View 6 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 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 19, 2013
Is it possible to obtain Architectural unit dimensioning (ft and inches) in a metric drawing ?
View 3 Replies
View Related
Jan 7, 2014
Is there a way to invoke the iLogic Rule Editor and pass it an existing rule name or external rule for editing?
View 4 Replies
View Related
Aug 2, 2013
I need a way to run a rule which is saved in my top-level assembly using iLogic rule which is saved in a part file in the parent assembly.
I have even tried using an external rule in a txt file, but that gives the error "Component: This function can only be used in an assembly." - which makes no sense to me. I hope I am just missing something simple. I cant believe with all its other strengths, that iLogic would be so limited in that regard. Why is there not simply a snippet under the 'Run Other' that allows you to specify an assembly file and the rule name? (like there is for running a rule in a component from the assembly)
View 4 Replies
View Related
Dec 6, 2011
I want to simply set a custom iproperty as the Description in each part file within my assembly. I can do this easily at part level with ilogic but I want to be able to run the rule from the assembly level and all the parts run the rule. I am struggling to find a way to do this.
I think this may be the best method I have found but I think it must be far easier?
[URL].......
View 9 Replies
View Related
Dec 9, 2011
I am working for customer with a simple item with his iLogic design. He has created a simple form to modify his iProperties. To modify the current material, a multi-value parameter was created and the following rule as a local rule;
"MultiValue.List("MATLIST") = iProperties.Materials
iProperties.Material = MATLIST"
He is now trying to make this an external rule but gets the following error
Error in rule: Mat2, in document: Mat2.iLogicVb
iProperties.Material: is probably a bad material name.
The more info tab says:
System.ArgumentException: iProperties.Material: is probably a bad material name.
at iLogic.CadPropertiesInRule.SetDocMaterial(Document doc, String matName)
at LmiRuleScript.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
View 2 Replies
View Related
May 14, 2012
I need converting imperial dimensions into metric in assembly as weell as part level sketches dimensions.
Any solution for converting all imperial dimensions to metric dimensions in whole assembly constraint level and as well as part level sketch dimensions. Any macros or any ilogic rules?
View 1 Replies
View Related
Jul 10, 2013
This happens every time I save as to dwg, it's very annoying.
View 3 Replies
View Related
Oct 22, 2012
how to change default units to metric for inventor2013? Now I have them set as imperial.
View 3 Replies
View Related
Oct 13, 2012
How to change the units to metric in material editor? See attached picture
View 1 Replies
View Related
Aug 19, 2013
how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?
View 5 Replies
View Related
Apr 19, 2012
How do you change the dimension units from default decimal to feet and inches with ACLT 2013?
View 4 Replies
View Related