AutoCAD Inventor :: Delete Userparameter With Ilogic

Jan 9, 2012

I know how to add user parameters with ilogic, but i would like to dete them as well. I've tried to use the delete option as mentioned in the API but I cann't get it working in ilogic.

How i create a parameter:

Format:HTML Format
Version:1.0
StartHTML: 165
EndHTML: 3855
StartFragment: 314
EndFragment: 3823
StartSelection: 314
EndSelection: 314

DimoDocAsPartDocument=ThisDoc.Document'of : oDoc as AssemblyDocumment = ThisDoc.Document
'nummerieke parameter
Try
prop=oDoc.ComponentDefinition.Parameters.UserParameters?.item("nummer")
Catch
newprop=oDoc.ComponentDefinition.Parameters.UserParameters?.AddByExpression("nummer", "100", "mm")
EndTry

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: Check If UserParameter Already Exists

Nov 8, 2005

The following code adds three user parameters to an .ipt:

Public Sub AddUserParams()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

[Code].....

If I run this on a part that already contains any of these user parameter names I get an error. Is there a way to first check for each name and skip to the next if it already exists?

Also, how the heck do I set ExposedAsProperty for each of the parameters added?

View 5 Replies View Related

AutoCAD Inventor :: How To Delete ILogic Forms

Nov 7, 2012

how to delete iLogic forms from Inventor 2013 parts/assembly using VB.net 2010?

I am able to delete all the rule using "Activated_iLogic.DeleteAllRules(PartDoc)" but "Activated_iLogic.DeleteAllForms(PartDoc)" or "Activated_iLogic.DeleteForm(PartDoc, FormName)" does not give me the result I was expecting and Google is not showing any result related to this.

View 5 Replies View Related

AutoCAD Inventor :: Delete ILogic Rule Using VBA?

Jul 6, 2011

i have an iLogic rule in serveral files. Now this rule has to be deleted. This should be done with VBA. I can not find any function to delete a rule using VBA.

I found a function iLogicAuto.RunRuleDirect(rule), but not iLogicAuto.DeleteRule(rule) ...

I can not find any documentation for iLogic/VBA.

View 9 Replies View Related

AutoCAD Inventor :: Delete All Parameter In ILogic

Sep 27, 2012

In 2009 Inventor iLogic, we have a button to delete all parameters and rules. But now, in 2013 Inventor iLogic, I only find a button to delete all rules. Where is the button to delete all parameters?

View 9 Replies View Related

AutoCAD Inventor :: Set Sheet Metal Rules Thickness To A UserParameter Variable

Sep 16, 2011

We are using 2011.I created a VBA tool that populates the FX Userparameters with a Thickness Variable..How do I set the Sheet Metal Rules Thickness to the new new FX UserParameter Thickness Variable?

for example:

The Userparamter variable name is "cab_thk"

Under Sheet Metal Defaults | Sheet Metal Rules | Sheet (Tab)

The Thickness entry should read "cab_thk"

View 3 Replies View Related

AutoCAD Inventor :: How To Delete All Parameters In A File With Ilogic

Aug 22, 2012

Working code ...... attaching file

Auto = iLogicVb.Automation
Dim iLogicAuto As Object
iLogicAuto = Auto
Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument

[Code]...

'but now something more i wanna do is...... delete parameters

        If Not (param Is Nothing) Then
        
            For Each param In params
            i = MessageBox.Show("Checking for Parameter in File")
            i = MessageBox.Show("No.of Parameters exists are ="& param.count)
 
[Code]....

View 5 Replies View Related

AutoCAD Inventor :: ILogic To Delete Sketched Symbol From IDW

Nov 5, 2012

How can I delete one Sketched Symbol from my Drawing ? It wont be in use in any sheet, i just need to delete it and the recreate with my code, so by this way the symbol is updated.

The other part of the code is created already, just need this part to delete. I found some ways but just delete the symbol from the sheet, not the source symbol. How can i delete it then ?

View 4 Replies View Related

AutoCAD Inventor :: ILogic - Delete A Suppressed Component Pattern

Sep 20, 2013

How to modify the code below to delete suppressed parts in a pattern (entire pattern)?

Dim oComp As ComponentOccurrenceDim oComps As ComponentOccurrencesoComps = ThisDoc.Document.ComponentDefinition.OccurrencesFor Each oComp In oCompsIf Component.IsActive(oComp.Name) = False Then oComp.DeleteNext

 Code works fine if there are single instances of the part. It throws a error when you have a suppressed pattern.

View 7 Replies View Related

AutoCAD Inventor :: How To Delete Suppressed Components By ILogic Rule

Jan 24, 2013

I have an assembly which includes lot of parts (*.ipt) or sub-assembly (*.iam). I have some ilogic rules to control to suppress or un suppress them.

Now for the released assembly, I want delete all suppressed components by ilogic rule.

View 9 Replies View Related

AutoCAD Inventor :: Delete Column In Excel File - ILogic

Oct 23, 2013

Is there any way using ilogic to find a value in an excel file and delete the column that value was found in?

View 1 Replies View Related

AutoCAD Inventor :: How To Use ILogic Rule To Delete Rules And Features In Other Parts

Aug 10, 2012

I made an Part with iLogic rules, let's call it "iLogicPart". The rules inside could create lot of different part by my input.

I want save the different parts to different name as "Part 1", "Part 2", etc. I used SaveAs to get them.

My question is: I want to delete all rules and parameters in the saved parts as "Part 1", "Part 2". And I have lot of features (the name is hard to track) which are inactive, I want to delete them at same time too.

I could manually do so, but I want to use rule to do so automatically.

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Skip Saving A Suppressed Component / Delete Suppressed Component

Aug 30, 2012

I have an assembly which has a few components suppressed.

My end results is another copy of the assembly (with copies of the all the parts) in another directory

Now i am able to create copies of un-suppressed parts using; (this allows me to SaveAs assembly components which are not suppressed)

DocumentsEnumerator = ThisDoc.Document.AllReferencedDocuments

And save a copy of the assembly using

ThisDoc.Document.SaveAs

I also added the fllowing snippet (which I am not sure what is does), but it does not work for me

Component.SkipDocumentSave = true

 When I open the newly created assembly, I still see the suppressed components in the model browser

I want to either;

Skip saving the of the components in the model browser (i.e. the Assembly)

OR

Delete the suppressed parts in the Assembly, so that they do not save altogether

View 3 Replies View Related

AutoCAD Inventor :: Close ILogic Form With VBA Or ILogic Rule

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

AutoCAD Inventor :: ILogic Design Copy - Error Copying A File / Inventor Crashes

Nov 5, 2013

I'm trying to use iLogic Design Copy to copy an assembly and all its associated parts to another directory. The assembly contains content center parts. Inventor warns me that the destination file of one of the CC parts (and 18 others) will be overwritten. When I go ahead and copy anyway, the copying process stops at that specific CC part. The Design Copy Progress dialog box states there is an error copying that CC part. When I close the Design Copy Progress dialog box, Inventor crashes.

The error copying the CC part: I'm allowed to use content center parts in iLogic Design Copied stuff, right? I searched some related topics and I'm under the impression that Inventor keeps the CC parts in its own directory and shouldn't be trying to overwrite them.

View 3 Replies View Related

AutoCAD Inventor :: ILogic Min Or Max?

Nov 13, 2013

I am doing a tie rod the issue I have is when the length is between 2.001 and 2.250 we would drill thru all but only tap the ends .750 deep. If the part is 2.000 would would drill and tap thru in one step and not have to rotate the part in the lathe.

How do I get ilogic to understand if my number is between this 2.001 and 2.250 to lengthen the drill length parameter?Or add a mid plane cut? ( trying now code below reflects this try)

 Not sure what way I want yet but I just can't seem to find a snippet or code to do this. I tried to add a list in the parameters for it to read but seems to do nothing.

If LENGTH <= "2" ThenFeature.IsActive("Thru_All") = TrueFeature.IsActive("Hole_A") = FalseFeature.IsActive("Hole_B") = FalseiProperties.Value("Project", "Description") = "RETURN ROLLER SHAFT, " & iProperties.Value("Custom", "DIAM") & " Ø S/S, TAP THRU 3/8-16, " & iProperties.Value("Custom", "LENGTH") & " LONG"ElseFeature.IsActive("Thru_All") = FalseFeature.IsActive("Hole_A") = TrueFeature.IsActive("Hole_B") = TrueiProperties.Value("Project", "Description") = "RETURN ROLLER SHAFT, " & iProperties.Value("Custom", "DIAM") & " Ø S/S, TAP BOTH ENDS 3/8-16, " & iProperties.Value("Custom", "LENGTH") & " LONG"End IfIf LENGTH = (My_List) ThenFeature.IsActive("Mid_Cut") = TrueElse Feature.IsActive("Mid_Cut") = FalseEnd If

View 2 Replies View Related

AutoCAD Inventor :: How To Delete Workspace

Dec 14, 2012

After I figured out how to delete a project (why not just have a delete button in the Project Dialog box)  that I didn't want created in the first place (apparently some missed option in the pack&go process) I now cannot delete the incredibly convoluted wokspace folder structure it created.

I deleted the project shortcut as was posted somewhere else and it no longer shows up in the Project dialog box.  However, the workspace it created cannot be deleted.  I had even removed the workspace from the project before I got rid of it.

I simply get a windows error that it cannot delete the folder(s).  I am an admin of this entire folder structure and everything beneath it.

I have opened and closed inventor making sure the project is still not in existence.  I have verified the workspace is not listed under any other project.  No other user has been to this folder or opened any files even closely related to my work.

View 9 Replies View Related

AutoCAD Inventor :: How To Delete Value In IProperties Using VBA

Aug 26, 2013

While in assembly, i would like to select a subpart and be able to clear or delete the value of ex description without opening the part file.

I can delete properties in custom prop but i cant do it in description....

I've use design tracking properties but to no avail....

View 3 Replies View Related

AutoCAD Inventor :: Why Can't Delete The Sketch

Nov 9, 2013

I played with adaptivity status of part 27 and sketch 3 in that part, and i now i cannot delete the sketch.

The delete command isn'ton the RMB and when i press Delete nothing happens.

View 1 Replies View Related

AutoCAD Inventor :: BOM XML Import Via VB Or ILogic?

Mar 8, 2011

Possible to run the 'import .xml structure' routine for an assembly BOM using either iLogic or VB?? I'm trying to replicate the Import button at the bottom of the BOM screen....

View 5 Replies View Related

AutoCAD Inventor :: ILogic Component Add

Jan 16, 2013

What I am trying to do is insert a part into an assembly file using iLogic. I basically want to mimic Inventor’s “Place” command using ilogic, maybe something like this:

oPath = ThisDoc.Path & ""
oFile = "File.ipt"
Component.Place(oPath & oFile, False)

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Export DXF From DWG

Jun 20, 2013

This att. doc shows rule for exporting dxf out of drawing. It is working on one sheet just perfect. In multi sheets it save allways with same name. I want to choose from which sheet i need dxf but to be saved by sheet name or model properti name. Is that possible?

View 9 Replies View Related

AutoCAD Inventor :: ILogic DWF Merge

Aug 28, 2013

I have an external ilogic rule that creates a set of DWF drawings for all parts and subassemblies (as long as the idw files exist) within and including a main assembly.

I would like to merge all the DWF drawings of the sub assemblies and component parts into the DWF of the main assembly. Is there a method within DWFAddIn that will allow me to merge the files? Is there another way that I can merge the DWF files using the same ilogic rule (one rule to create and merge all DWF's together?)

View 3 Replies View Related

AutoCAD Inventor :: Extrusion Using ILogic

Aug 9, 2012

I have closed profile "Sketch1" placed on one of the parts in Assembly.

Suggest iLogic code to create cut Extruson (Extents=All) based on the "Sketch1"

View 6 Replies View Related

AutoCAD Inventor :: Set PDF Metadata Using ILogic

Jan 9, 2013

I´ve found some iLogic code to print a drawing to a PDF document. After some minor modifications it works just fine, but I would like to add some code which allows med to set PDF properties (such as "title", "author", etc.) with values from iProperties. How can I do that? Is it possible? (I'm new to iLogic).

View 6 Replies View Related

AutoCAD Inventor :: Managing LOD With ILogic

Jul 12, 2013

I use simple set of iLogic rules to manage product configuration through the assembly LOD. Assembly is really simple not more then 30-50 parts. Still I manage to crush Inventor fairly often. Some days 5 and more crashes! Several times sent crash report to AutoDesk for no joy. Never got any feedback. 

I am just getting an impression that Inventor does not like LOD manipulated with iLogic for some or the other reason.

View 5 Replies View Related

AutoCAD Inventor :: ILogic In Drawings

Dec 19, 2011

I am slowly learning about ilogic, and have created parts and assemblies that are run by rules. My next question is, what exactly can ilogic do for drawings? I've looked at the wikihelp, but I am not a natural at programming and I need more than a list of functions with brief descriptions to get me started.

I'm looking for code snippets, other discussions, tips, tricks, and/or tutorials to get info what I can do with ilogic and the API that can automate parts of the drawing process.

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Sort BOM?

May 22, 2012

I have been unable to find any code to sort the BOM, there are lots of snippets to sort and modify the Parts list.

How to sort the Assembly BOM?

Sort parameters:

PARTS Only

"BOM Structure"

then by

Custom Parameter "TYPE"

Then By

Part Number

Then "Renumber" starting at 1

Autodesk Product Design Suite Premium 2014 SP1 Build 222
Intel Core i7 (950@3.07GHz)
Windows 7x64 (Home) - 12GB Ram
Nvidia GeForce GTX 560 Ti (1Gig - Ver:331.65)

View 1 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 :: Trying To Get Started With ILogic

Aug 1, 2012

I'm trying to get started with iLogic, but I have no coding background and no VBA experience in Inventor, so I'm looking for a good site or resource that explains iLogic and gives working examples.

View 3 Replies View Related

AutoCAD Inventor :: ILogic BOM Manipulation

Nov 30, 2012

When we create a manifold assembly we like to itemize each part individually. Meaning that if we have 5 valves that are the same, we show those as 5 separate items on the BOM. This makes for easier troubleshooting with a customer over the phone. Unfortunately there appears to be no way to manage this natively within Inventor, so we have to edit the BOM manually which defeats the whole idea of automated BOMs. I was hoping some code could come to the rescue. One thought I had was to export the BOM to excel and then have some automation within excel to re-number and sort the BOM, once complete import it back into Inventor in a table.

View 7 Replies View Related







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