AutoCAD Inventor :: ICopy Manipulation With ILogic?
Aug 3, 2012is there any way i can use iLogic code to set the "Instance Number" and "Offset" of an iCopy feature i have in my drawing?
View 1 Repliesis there any way i can use iLogic code to set the "Instance Number" and "Offset" of an iCopy feature i have in my drawing?
View 1 RepliesWhen 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 RelatedI want to make some icopy tools to suit my needs, i did the tutorial i've found on AUGI "an icopy how to" and then i did a glass panel using the technique i learn there. Everything works fine until i place the icopy on a different plane than the x, y plane.
when i place it in other plane it the icopy behave in strange way. I had this problem since the first icopy test i made and i can't find why it doesn't work.
We get our clients acad drawings of the layout of the ceiling. Normally we use it as xref in acad. Now that I have placed the acad drawing in an .Ipt and placed them in a. Iam like you see in the files I sent. Then i place the panels with iCopy.
Now it happens that the layout drawing changes and I get a new acad drawing. I then replace it with the already placed drawing in the .ipt. This is fine until i update the .iam and then i get alerts that the constraints are no longer correct because the geometry is no longer be found.
What I can do is change the sketch in the .ipt but that is then done manually with the possibility of errors. Now my question is if you know a way to replace the drawing in the. Ipt and update so that the constriants stay correct in the .iam and the panels will change with the drawing?
I have a Problem with the Texture Manipulators. I made a new Textur from a Picture that I had, then I wanted to roatate and position the picture on the 2D Surface sheet metall, that I constructed in 3D.
I cant move the Picture in x or y-direction. I can rotate it and scale it but not wove it in x-y direction.
Are there some installations that I have to make, to have the possibility to move the picture on the surface?(I have tried to move the in the Text manipulator and in the "Darstellungs-Browser" for the Textures)
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 RelatedTrying to put dimensions on a 3D object but having absolutely no control of the plane on which they are placed.
How would it possible to change the setting that decides of the location of dimensions: I use 2002 version of Autocad.
The dynamic position and angle parameters within the inserted blocks appear to be based on the UCS at the time of insertion and relative to the basepoint of the block. These positions don’t change if the UCS is changed or block is rotated.
I can’t work out how to modify the position parameters if the UCS is not the same as that used when the block was inserted. How I access these positions after changing the UCS?
I’ve tried looking at the ECS of the block reference but I’m not sure if that’s what I need to be using.
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.
I have a drawing of Clock Face here (see the picture below), which requires donut for the outer circle. My first question is, looking at the picture, what would be the limits, grid, and snap settings? I made an attempt with the limits (0',0') (12',9'), with Grid =0'-0 1/2", and Snap = 0'-0 1/4", but it didn't work out well. I tried to make the Snap 0'-0 1/32" but it couldn't, neither 0'-0 1/16", nor 0'-0 1/8". Why can't I set the Snap to 0'-0 1/32"?
Next, I would like to know how the outer circle could be constructed with donut. The small inner circle below it is of 1'-11" + 1" + 1" in diameter, that is, 2'-1". If then the Donut (as shown) is to be of 24" inside x 1" thick, the 2'-1" DIA circle would disappear within the thickness of the Donut, leaving no gap between them both. How could this be drawn,
If you create a group, after that select it and click on the insertion point (grip) using a lot of time the space bar (to switch between move, rotate, scale and mirror) after a while autocad crash.
Tested in AutoCAD 2013 and 2014 in more the one installation.
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
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 RelatedWhat 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)
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 RelatedI 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?)
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"
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 RelatedI 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.
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.
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)
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 .
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 RelatedI have problems to export dwf with ilogic
I use parts of the snippets than ships with inventor, but I can not export the 2d and 3d in the same dwf.
Perhaps it might have something to do with that when I export a 2d file the traditional way only 2d gets exported to the dwf if i dont open the tab that lets you choose 2d and 3d model.
Even if i have the 3d model checked i have to open the tab to get both 2d and 3d, if i dont open the tab only 2d
Here is the code.
path_and_name = ThisDoc.PathAndFileName(False)
DWFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD95-2F4D-42CE-8BE0-8AEA580399E4}")
oDocument = ThisApplication.ActiveDocument
oContext = ThisApplication.TransientObjects.CreateTranslationContext
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
[code]......
I want different features on and off with iLogic.
I have a text parameter with a choice menu of 1,2, and 3
This I want some features on and off.
If I pass the parameter I get a message: No feature found with the name. Mvg Jos
Your drawings are only as good as the symbols that complete them...
How would you put other images inside of someone's eyes. Kind of like Photo Manipulations really.
View 2 Replies View RelatedI have 750 gif scanned images of maps. The problem is that I need to turn a border of 75 pixels right round each image either black or white. The image has to stay the same the same size, just the first 75 pixels all around have to be either black or white.
So how do I:
A make the border black or white?
B automate it so I don't have to do them all by hand?
I want to become really good at it, but don't know where to start! Everytime i try something, i try to blend different parts together via cut and paste. I try to smooth it in to make it look like the original photo, and no matter what strategy i use (Smudge tool, pencil tool and manually put in the colors, etc.) the area turns out rough or too blurry?
View 4 Replies View RelatedHow to do photo manipulation! Like this:
or some thing as simple as putting sunglasses on a cat for a start.
I would like to copy and paste all iproperties from one part to another, without retyping it all.
What i was thinking about is:
1. Exporting all iproperties to .txt
2. Run a import .txt rule to iproperties.
Is it possible? If so, How could i accomplish a task such as this?
Privacy warning: Since I live in a country that has traded liberty for the illusion of security, all of your posts to me are being monitored and saved by the United States Government.
We have been experimenting with Parallel threading. The situation is that I have an assembly that contains multiple parts (approx. 40) which all have contained "almost" the same code. In order to rationalize this; we have rearranged the code in such way that we now only reference External iLogic rules form these 40 part files (only one place to revise the code if necessary).
The side effect to this rationalization has been the we have problems in executing the codes in parallel, see this simplified example:
Imports System.Threading.TasksParallel.For(1,40, Sub(h As Integer) iLogicVb.RunRule ("Part "& h &"", "iTriggerRule") End Sub)
Now all of these 40 part files try to execute their code.
'Configutation of Part filesiTrigger=iTrigger0iLogicVb.RunExternalRule("Cut configuration")iLogicVb.RunExternalRule("Bracing of the part")iLogicVb.RunExternalRule("Parameter context")
As they all are dependent upon running the same external rules the result is that not all part files are updated according to the required design requirements. It seem as if one of the part files calls the external rule and the rule is "busy" handling another part file it just terminates without warnings or errors.
Can multiple part files run the same external rule at the same time? Is there some form of queue? I do not get any warnings or errors, the partfiles just do not update. How can I make sure that all the part files run the external rules and is there a way of checking this?