AutoCAD Inventor :: Material Pull Down Not Updating After ILogic Routine
Sep 25, 2013
The following rule works perfectly as an external rule except the Materiial and Appearnace pull downs do not update. I know I am missing something easy. Here is my code
'Set the materials libraryassetLib = ThisApplication.AssetLibraries("iLogicTestMatLib")'Set the current document activeoMy Parameter= ThisApplication. ActiveDocument.ComponentDefinition.Parameters.UserParameters'Turn off error reporting on parameters and.
[code]....
I am trying to find a way to have iLogic code that looks at a part with only one extrusion, such as bar stock or angle stock and automatically export the length to iProperties. As per the request of the other engineers however, this code cannot be based on a common renamed parameter. Also, since no one draws things the same exact way, it can't be based off of a common dimension parameter either. At least not in terms of d0,d1..etc.
Is there such thing as a code similar to variable=standard.extrusionextentslength that I can imbed within an if then that would pull this information from the model?
I have an assembly with approx. 200 unique parts. Most of them derrived from a common skeleton-file. And some (you could say a lot) iLogic code.
Depending on how big changes one makes, it takes between 10 sec and 60 sec to update. Considering the complexity this is ok.
But the problem is that it is difficult for the user to tell if the update is complete. I have tried to have the last line in my driving rule to show a messagebox: "Updating done". But the messagebox fires to early, and pauses the remaining updating. Even if I call InventorVb.Rebuild and/or ThisDoc.Document.Rebuild in advance.
I am using a form to make the changes in the assembly, but when I change body styles ( 1 piece to 2 piece) it is not updating correctly unless I regen the rule. It is having trouble with the 2nd body piece. It doesn't want to change it unles I do a regen.
I am using iLogic to change assembly dimensions, suppress components and constrains. Is there any way to turn off screen updating while iLogic rules are running?
Inventor 2013 SP2 Windows 7, 64 bits RAM 18GB Core TM2 Duo CPU 2,99 Gz
I have a flange that I use iLogic and the parameters list to update the different styles. My problem is that my flange won't update until after I hit save and update. My other square flange is not this way. As soon as I change the parameter in my square flange it immediately updates. Is there anyway I can get my round flange to update immediately like my square flange? I attached pictures below.
I'm trying to build a simple ilogic form to fill out iproperty infomation for parts we generate. Our company only uses a few of fields that are available. The problem is that the Physical tab is not available in the form editor. I would like to add this field to my form to be able to select the material for the part. The style/standard editor in our part template file holds all materials we use. Summary, Project, Status, and Custom are all available, why isn't Physical?
The attached part has some bad work features on it, but I don't care about that (easy fix). It also contains a rule that simply changes the material from "P AND O" (pickles & oiled) to "201 S/S", for some reason the faulty work geometery causes this rule to throw an "unspecified error". If you delete the bad work geometry the rule runs fine.
I am interested in Learning about Ilogic and the Itrigger. I worked at a company where they had a prompt that would change, size, material, hole quantities etc. I am trying to recreate that for a cabinet but cannot seem to find a good tutorial, I know I need to write some sort of rule to do this but cannot find out specifcally how to do so.
' material thickness from multi-value parameter called ShThk
If ShThk = 0.3125 Then SheetMetal.SetActiveStyle("5/16"& Chr(34)) Else if ShThk = 0.25 Then SheetMetal.SetActiveStyle("1/4"& Chr(34)) Else if ShThk = 0.1345 Then SheetMetal.SetActiveStyle("10ga") else if ShThk = 0.105 Then SheetMetal.SetActiveStyle("12ga") else if ShThk = 0.1793 Then SheetMetal.SetActiveStyle("7ga") End If
I am completely new to ilogic but would like to make a rule in my idw file that change the hatch pattern in a section of a specific material.
Short Version:
I have an aluminum extrusion part. Material is set to Aluminum-6061. In any section view of this part I want the hatch to be ANSI 31 with a rotation of 45 degrees and a scale of .02 How do I do this?
I then created a Custom iProperty which consisted of the following "formula": Finished Material Size = <Thickness> x <Width> x <Length> Lg.
eg. of Finished Material Result : Finished Material Size = 6 x 25 x 300 Lg.
The problem comes up when dealing with diametrical components as the above formula will only populate for square or rectangular parts. Which would work if I could use iLogic code to populate the Finished Material Size iProperty. I have tried but failed.
First I created another user parameter called "Geometry Type" which has a drop down selection of either "DIA" or "SQUARE, RECTANGULAR".I then created the following iLogic code to set 0 as the value for the "unused" size parameters
If PART_GEOMETRY = "DIA" Then WIDTH = "0"If PART_GEOMETRY = "DIA" Then THICKNESS = "0"If PART_GEOMETRY = "SQUARE, RECTANGULAR" Then DIA = "0" The part I just can't get to work is as follows.
I need some iLogic code which will populate the "FINISHED MATERIAL SIZE" custom iproperty with one of the following based on my "GEOMETRY TYPE" selection. "DIA" would return the following to "FINISHED MATERIAL SIZE": = Ø <Dia> x <Length> Lg.
While "SQUARE, RECTANGULAR" would return the following to "FINISHED MATERIAL SIZE": = <THICKNESS> x <WIDTH> x <LENGTH> Lg.I tried the following code but it does not work:
If PART_GEOMETRY = "DIA" Then iProperties.Value("Custom", "FINISHED MATERIAL SIZE")= "Ø"DIA "x" LENGTH "Lg."If PART_GEOMETRY = "SQUARE, RECTANGULAR" Then iProperties.Value("Custom", "FINISHED MATERIAL SIZE")= THICKNESS "x" WIDTH "x" LENGTH "Lg."
I am setting different cut and fill shapes for different material and it keeps plotting the same patterns. I check the material table and the section view display tab for the shape and it all looks correct. for now I went through them manually selecting the fill shape and changin it.
Civil 3D 2012 & 2013 HP Z210 Workstation Intel Xeon CPU E31240 @ 3.30 Hz 12 GB Ram 64 Bit Win7 OS
I can delete every unused material except one in the Material Editor.I am trying to make the custom Material library and somehowI have got the Material I cannot delete. URL....
I am in the samill building buisness. While designing I thought it would be nice to show logs on our equipment. Is there anyway to show bark on drawings to show the texture on the final drawing?
I want to create an iproperty that has a pull down menu where I can make a selection. Can this be done? Can I import this data from a txt, csv, xml file?
Something I'd like to see fixed (or find out how) is when using the start New File icon, if you select the icon itself, you are directed to the templates folder of the active project, but if you select the "Pull Down" arror next to the icon, you are taken to the Inventor Standard default templates which are typically not used.
I see numerous users unknowingly selecting those default templates and not noticing until they've started entering dims, etc. They get very upset at having to make sure they select the icon and question as to why it would be different.
Same deal if one is to select the Inventor Icon in the far left upper corner (this is more common than the users selecting the pull down) and then select "New", again, they are shuttled to the default templates and not the associated project file templates...why?
When I grab the EOP and want to drag up past the features higher up than the current scroll position, I don't have a good control. The EOP is already reached the beginning of the part.
Inventor Professional 2013 Vault Collaboration 2013
in versions of inventor prior to 2013 we were able to quickly and easily refresh a part styles, and thereby obtain the master information for materials, colours and any other style.
i find that now, with the new system of managing materials and appearances that if i need to update a part to reflect the material assests that reside in my materials and appearance library that i have to:
1. open the part, then set the part material to a material other than that i wish to update, then
2. delete the local/ document asset of the material i wish to update, then,
3. assign the material from my material library to the part (to get the library assets to come through to the part).
it seems ridiculous that we have to delete local materials or colours prior to obtaining an updated material or appearance to get the new data into the part.
(the refresh styles command actually appears to be calling in the updates however the updates seem to treat the document assets as the most important. even when managing materials and appearances, the local/document asset seems to take priority over any library asset. again this is different to pre 2013, and is frustratingly slow to work around. all that used to happen in 2012 and prior is we would get a warning that the local style would be overwritten with updated style data = very quick and easy
I am playing with a design in simulation where the balance is effected by gravity. I have a part at a set angle to start off so a constraint is place and set to this angle,then in simulation I suppress the angle prior to starting the simulation to see what happens. Then I unsuppress the angle then edit it to adjust the simulation to a new angle I then resupress the angle to free it up and run the simulation again.
This can go on a few times until the angle is found in the simulation.The problem I have is it takes ages to do this. Basically it seems in simulation the tree is always collapsed and I want it expanded, how ever after each change the tree collapses?
Is there a way to have the tree always expanded so I can quickly find and adjust my constraint? Or even better is there a way to pull the constraint into the main edit window for direct editing?
It would be good if a small bow / window could be opened with the ability to add a setting/constraignt that needs constant updating.
I design cushions for airplane seats and am trying to display a leather cover on the cushions with pull lines for piping detailing. etc. I am also wondering if a leather material style is availble for DL online.
Where I work we do a lot of plate and punch holes in beams for rebar. Is there a way to pull the flat patteren layout of sheet metal and convert to an NC1 file. I can export to a DXF but then i must manually go in and make changes to the DXF in order for it to cut right on our plasma and laser tables. As far as punching holes and cutting beams any clues on this either? We were outsourcing our drafting work before but now we are switching over to in house. I have contacted our supplier of plate nesting software and it looks like they sell something but that means another license of it on another computer.
I'm working on a routine to find orphaned objects in .idw files. So far, I've found it relatively simple to find orphaned dimensions, balloons, surface texture symbols and centerlines/marks, but I'm having trouble with leaders (such as for tapped holes, etc.) and weld symbols.
I've tried iterating through a drawing's SketchedSymbols collection, but it seems that this collection always has zero size, and unlike the items I've been successful with so far, I cannot find a specific collection for those items either within the sheet or drawingview objects.
I am using Mech 2007. I have created a template to use with new drawings, and want to know if there is a way to update all the drawings at the same time when updating the template.
I have just installed IV 2013 Pro and I am having some issues with changes in the IPN transferring to the IDW. I changed the colour of a part in an assembly which transferred fine to the IPN, but the IDW did not update. I have tried turing off the visibility of the part in the browser in the IDW, then turning it on again, selecting the associative icon in the drawing view dialogue box, but still the view will not update. I even tried re-inserting the IPN in the IDW, still the colour had not updated. This is unacceptable. I do not have time to re-create all the IPN's.
I am using Inventor 2013 and if I change the model of a part in the assembly, the IPN updates but the IDW views do not? Why is this happening all of a sudden? I tried unselecting and re-selecting the "associative" icon in the "Edit view" dialogue box but still no change?