AutoCAD Inventor :: ILogic - Get Model Reference

Mar 8, 2013

I was wondering if there was a command that will get the file name of the model referenced in a drawing?

The reason I want to do this is because I have various programs to automate drawings, but I have to manually edit the code if i want to switch between using the code on assembly drawings and part drawings.

If i can get the model reference, I can then use a bit of extra programming to extract the extension. (i.e. .ipt or .iam)

Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

View 5 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic - Model / Reference Parameter

Apr 12, 2013

I wish I perform the following code with iLogic. Is it possible to change a model parameter to a reference parameter?
 
If My_Expression Then' My dimension "d0" is a Driven Dimension' or' My dimension "d0" is a Reference ParameterElse' My dimension "d0" is NOT a Driven Dimension' or' My dimension "d0" is a Model ParameterEnd If

View 9 Replies View Related

AutoCAD Inventor :: Replace Model Reference Using ILogic

Oct 4, 2011

how to replace model reference using iLogic in inventor 2012. Basically I have a drawing file whose model reference needs to change with part number(iProperties) .

I've been struggling to  perform replace model reference as there is no direct command given for it.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Reference Parameters

Oct 9, 2013

I'm having some difficulties with iLogic and reference parameters.

I have made a tube with a weird shape and I want to measure the longest length. So I have to cut the tube in a certain angle in relation with the center to measure the length.

The problem is that this angle is really hard to calculate.

So I tried making a rule where I can make my angle shift x degree and then measure the longest length. If the measurement is larger the previous measurement the angle will shift x degree again until the measurement is smaller than the previous.

So I made my starting angle 0 degree, I know this is for a fact not the longest length. And then I tried this rule. (before making a While rule).

And I noticed that on screen the measurement changes. But the reference - parameter stays the same. So it gives me the measurement on the starting angle & after rotating it again gives me the starting angle.

How can I get the parameter to update itself in between?

Dim measurement_length As DoubleDim measurement_length2 As DoubleMessageBox.Show("Start angle ", "My iLogic Dialog", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1)angle_measurement_spec = 0RuleParametersOutput()InventorVb.DocumentUpdate()measurement_length = [code].....

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Reference All Curves On A Drawing?

Aug 6, 2013

Is there a way in iLogic to iterate through all curves on a drawing. We manually apply radii labels to each drawing view but would like to automate the process with iLogic. How could I reference and cycle through all the radii on my drawing view?

View 2 Replies View Related

AutoCAD Inventor :: ILogic Change Assembly To Reference

Oct 26, 2011

Is there a way to set an assemblies bill of material setting to reference through iLogic?

View 3 Replies View Related

AutoCAD Inventor :: ILogic To Set Pattern Components To Reference

Sep 17, 2012

I have a pattern of reference components, but the quantity of the pattern can change based on certain criteria.  When the quantity increases or decreases, I need each pattern element to have its BOM structure set to reference.

The problem is, even if the original pattern element is set to reference, each subsequent element comes in as normal.  This causes the BOM quantities for that component to be reported incorrectly in higher assemblies.

Is there some iLogic or VBA code that will automatically set each component in a pattern to BOM structure "Reference", even if the pattern quantity changes?

View 7 Replies View Related

AutoCAD Inventor :: ILogic - Set Pattern Parts To BOM Reference & Default

Oct 3, 2013

I made a flanged connection using I logic. Very simple Tube + Flange + Gasket + Blind flange + Bolting.Then I tried to write some ilogic rule to have Blind flange on / off when needed, hence the Gasket & Bolting also need to be off. Like in these images:

That works fine visually, but I also want the BOM to be set accordingly. For the Blind flange & Gasket my BOM is OK. But for my bolting the BOM is not OK. I tried to set the BOM structure the same way as the visibility but that failed. It only subtracted 1 bolt from my list (see code)

If Blindflange_status = 0 Then 'Bolting offComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kReferenceBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = FalseElse 'Bolting onComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kDefaultBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = TrueEnd If
 
Is there a way to set all parts within a pattern BOM structure? I made my bolting  by adding 1 bolt, 1 washer & 1 nut and then pattern them using feature pattern select.

Inventor 2013

View 1 Replies View Related

AutoCAD Inventor :: Reference Drawing Sheet Number With ILogic?

Dec 11, 2012

How to reference the drawign sheet number using iLogic?  I see on the snippets on the side a way to reference the sheet name, but I only want the number.  To get the name it is ActiveSheet.Name, but ActiveSheet.Number does not work.  Getting the name give something like ASSM:1, so if there was a way to take that and subtract the colon and everything before it that would work also.  I am not a programmer, I've just taked some programs I found online and modified them a little to do what I want to do, but this is holding me back a bit.

Overall, I'm trying to modify the drawing view label to have a project number, referenced from the drawign iProperties, a view label, and sheet number, and then save that info in an iproperty of the part, and then reference that in the BOM so it automatically labels all of the views and fills out a column of the BOM to reference which page and view to find the parts of the assembly.  I have everything working except for the sheet number.

View 5 Replies View Related

AutoCAD Inventor :: ILogic - Set Pattern Parts To BOM Reference And Default

Oct 3, 2013

I made a flanged connection using I logic. Very simple Tube + Flange + Gasket + Blind flange + Bolting.

Then I tried to write some ilogic rule to have Blind flange on / off when needed, hence the Gasket & Bolting also need to be off. Like in these images:

That works fine visually, but I also want the BOM to be set accordingly. For the Blind flange & Gasket my BOM is OK. But for my bolting the BOM is not OK.

I tried to set the BOM structure the same way as the visibility but that failed. It only subtracted 1 bolt from my list (see code)
 
If Blindflange_status = 0 Then 'Bolting offComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kReferenceBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = FalseElse 'Bolting onComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kDefaultBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = TrueEnd If
 
Is there a way to set all parts within a pattern BOM structure?

I made my bolting  by adding 1 bolt, 1 washer & 1 nut and then pattern them using feature pattern select. Inventor 2013

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Add Reference Brackets To All Dimensions For A List Of Drawings

Apr 2, 2013

I already have a code below that will read a bunch of drawing filenames that will go into each drawing, save the drawing, (print the drawing but I have this disabled for now,) close it, then move onto the next one.

What I want to do is add reference brackets around every dimension on each drawing. I have managed to update part list styles before using ilogic but I am not sure if it is possible with dimensions.

question = MessageBox.Show("Are you sure you want to update multiple drawings? If so, make sure all drawings are checked out.", "Batch Drawing Update",MessageBoxButtons.YesNo,MessageBoxIcon.Question)

'set condition based on answer
If question = vbNo
Exit Sub
End If

[Code] ......

View 4 Replies View Related

AutoCAD Inventor :: 11 - Replace Model Reference In IDW File?

Dec 2, 2011

how to replace a model reference in and Inventor 11 .idw file. - It seems this is something easy to do in Inventor 12 but I don't see how to do it in 11..

View 6 Replies View Related

AutoCAD Inventor :: How To Replace Model Reference In IPN File

Dec 14, 2011

How do I replace the model reference in a IPN file?

View 3 Replies View Related

AutoCAD Inventor :: Change Model Reference In Drawing

Dec 26, 2013

I did some digging and found the option to replace a model reference in an entire drawing, but I'm looking to change the reference in just a view. Consider the picture I have attached. I'm depicting top down views of these layers. Each layer requires changing the view identifier each time I drop a view. This would be considerably less time consuming if I could just copy/paste the view and change which part file it was pointing to.

View 2 Replies View Related

AutoCAD Inventor :: Replace Model Reference Not Functioning

Jun 26, 2013

I have been using Inventor 2012 and have been wanting to replace model references in drawings (.idw) with other parts. Inventor will let me select the Replace Model Feature, select the model to be replaced, and find the model I want to replace it with. It will even have the prompt appear asking if I want to continue with the replacement. The issue is that when I hit yes, nothing gets replaced.

View 9 Replies View Related

AutoCAD Inventor :: Copy View / Replace Model Reference

Jun 12, 2012

One of the new features in 2013 is the ability to copy a view that is on the idw.  Is there a way to copy/paste a view, then replace the reference of ONLY the part in the view that was just copied?

What I have is two parts. For simplicity, just imagine both as a square plate.  One has a hole in it, one doesnt.  I have already dimensioned the square plate. Now I copy the view and paste it back on the sheet.  I want to replace the reference of the one I just copied and change the reference to the part with the hole.  If I use replace model reference command, it will replace both references, which is what I dont want.

Just a wish I guess, but the only way I can do this now it to place the second part on the sheet and start dimensioning it.  Seems like a waste when we almost have the tools to quickly complete this.

View 2 Replies View Related

AutoCAD Inventor :: Replace Model Reference Size Limit 2011?

Jun 18, 2013

Do we have a size limit of the models using replace model reference?

Just done a little testing with some iam's

Anything larger that 500 parts and the drawing does nothing, no replace..

View 4 Replies View Related

AutoCAD Inventor :: 3D Model With ILogic

Aug 22, 2012

I made a 3D model with ilogic to control features to be suppressed or compressed. Because there are lot of features need to do so (need almost 4 to 5 min.) , when I run the rules, it came "Rule timeout" issue as pictures.

I used:

 Feature.IsActive (myFeature) = status

to control the feature be suppressed or unsuppressed .

View 8 Replies View Related

AutoCAD Inventor :: Measuring Between Tabbed Parts And Lost Dimensions With Replace Model Reference

Aug 27, 2012

Two different problems (questions). These are IV2012 files but the problems are the same in 2013.

Open the two attached ipt's. Launch the Measure Distance tool and measure between the blue an red face on the DimTest. It should read 1 inch.

Change to DimTest Derive using the tabs on the status line. Measure still gives 1 in. Change precision to All Decimals. The mouse pointer changes to calipers and the distance now measure 1.004 (which is correct)

Switch back to DimTest again using the tabs.

Measure again and notice the mouse pointer still shows the calipers which imply that it is going to return all decimals but the dimension given is still just 1 inch. Either the mouse pointer should change back or all decimals should stick.

OpenDimTest.dwg. Manage> Modify> Replace Model Reference and pick DimTestDerive.

ALL dims disappear and the origin indicator goes sick.

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Save DWG But Not Model?

Oct 25, 2013

I currently have ilogic code that automatically saves a template Inventor dawing as a job drawing. However the problem I am having is when it does this save it takes forever as it seems to be also saving the linked model also. Is there a way to save this Inventor dwg without saving the linked model? The reason why I do not want this model save is because after the drawing is outputted the user is given options to write part numbers and dxf files if required which requires a model save anyway.

Sample of code used:-

ThisDoc.Document.SaveAsInventorDWG(ThisDoc.Path & "2D_DRAWINGS (Inventor dwg)" & iProperties.Value("Custom", "Drawing No.") & ".DWG", True)

View 1 Replies View Related

AutoCAD Inventor :: Modify Referenced Model By ILogic?

Jul 24, 2012

I try to modify on a drawing the 3d model, using iLogic (same thing as Inventor "Replace model reference" command).

View 3 Replies View Related

AutoCAD Inventor :: ILogic Controlled Model View?

Mar 22, 2013

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.

View 1 Replies View Related

AutoCAD Inventor :: Using ILogic To Change Model Tolerance

Jul 8, 2013

I need to change one dimension using iLogic.  It changes due to the path taken to manufacture the part.  In a nutshell majority of the time the "OD" has a +.004 / .000 tolerance and the model is drawn at the minimum size.  There are cases when the "OD" has a  +.005/-.005 tolerance and is modeled at the nominal size.   I've learned some of the iLogic to make the change I'm after but not all.  I'm having trouble setting ModelValueType to change the model size.

See the code below, for setting +/-.005" 

IV2012

View 2 Replies View Related

AutoCAD Inventor :: Ilogic To Change Model Color / Appearance

Sep 17, 2013

When I open a drawing, i want to be able to change the appearance of its part model.I can do it in part itself using iProperties.PartColor.

But I want to do it from inside the drawing.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Model - Dimensions Of Assembly In IDW Drawing

Jul 2, 2013

I have a automated ilogic model that is then used within a 2D drawing, this 2D drawing then has dimensions on it referenced to the the model.

This model changes in its length the dimension associated with its length then changes but the dimension text then goes outside of the dimension boundary (does not stay central). Is there any code that can scan the dimensions and in effect tidy them up?

View 3 Replies View Related

AutoCAD Inventor :: ILogic - Pull Path And File Name Of Model From Within IDW

Feb 28, 2012

How to pull the path & file name of an IPT from within an IDW?

 If I use this line from within an IDW:

ModelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

it will simply return the file name of the corresponding IPT.

I want to be able return the path for the IPT from within the IDW as well.

Product Design Suite Ultimate 2012 64-bit - SP1
Windows 7 64-bit - SP1

View 1 Replies View Related

AutoCAD Inventor :: Opening Model With ILogic And Save As STP File?

Jul 23, 2012

I have an ilogic rule created to do a save as .dxf and .pdf from the .idw file.  It will then open the .ipt file without any issues.  The problem I am having is that I also want it to do a save as .stp of the model after it opens the model.  I get the following error.

Error in rule: Save As DXF PDF and open, in document: Save As DXF PDF and open.iLogicVb

Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

Do I need to add something to the code?

Here is the code I have written.
 
strFolder="C:Vault_WorkspaceSave As"&iProperties.Value("Project", "Part Number")
ThisDoc.Document.SaveAs(strFolder&"_Rev"&iProperties.Value("Project", "Revision Number")&(".dxf") , True)
ThisDoc.Document.SaveAs(strFolder&"_Rev"&iProperties.Value("Project", "Revision Number")&(".pdf") , True)
doc=ThisDoc.PathAndFileName(False)&".ipt"ThisDoc.Launch(doc)
strFolder="C:Vault_WorkspaceSave As"&iProperties.Value("Project", "Part Number")
ThisDoc.Document.SaveAs(strFolder&"_Rev"&iProperties.Value("Project", "Revision Number")&(".stp") , True)
MessageBox.Show("STEP Created", "File Save")

View 1 Replies View Related

AutoCAD Inventor :: Can ILogic Access The Comment Field Of The Model Parameters

Aug 23, 2011

I would like to be able to use iLogic to get the value of the Comment field of a model's parameters.  I have some text there that I would like to display in a sketched symbol. The attached image illustrates what I am seeking.

View 2 Replies View Related

AutoCAD Inventor :: Using ILogic To Retrieve IProperties Form Model Into Drawing?

Jun 7, 2012

I'm trying to put a little iLogic rule in my drawing template which triggers as soon as the drawing is opened.  The rule asks the user whether the component he's making a drawing of needs to be painted or not.  If it gets painted, the paint area (one side only or both sides) needs to be calculated.  The result of this is then referenced by a text note in the title block.

I can do the radio boxes with the questions, as well as their If loops, but only when I'm in the model.  Due to our, admittedly inefficient workflow, we never have time to specify "minor details" like paint area or spec during modelling, only when we get to drawing level.  I'd like to put the iLogic rule inside the drawing template.  I'm having trouble referencing the iProperties of the model from within the drawing's iLogic interface.

What I have so far is this rule, which I can run inside the model:
 
'set dummy variable equal to total areatotal_area = iProperties.Area'start radio box with questionsText1 = InputRadioBox("Will this component be painted?", "Yes", "No", Text1, Title := iProperties.Value("Project", "Description"))If Text1 = True ThenText2 = InputRadioBox("How many sides will be painted?", "Both sides", "One side only", Text2, Title := iProperties.Value("Project", "Description"))If Text2 = True TheniProperties.Value("Custom", "Paint Area") = total_areaElseIf Text2 = False TheniProperties.Value("Custom", "Paint Area") = total_area/2End IfElseIf Text1 = False TheniProperties.Value("Custom", "Paint Area") = 0End If

adding a line or two so that I can run the same rule, but from the drawing.

View 9 Replies View Related

AutoCAD Inventor :: ILogic / Modify IProperties Of Model That Is Associated To Drawing View

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

AutoCAD Inventor :: Convert Model Parameter To Reference Parameter?

Oct 2, 2012

I need to convert a model parameter to a reference parameter thru the API.

I saw this item discussed in the group before, but I cant find the thread.

View 4 Replies View Related







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