AutoCAD Inventor :: Macro To Delete Unresolved Sketch Items
Aug 3, 2012Constraint to unresolved reference geometry. Finding these magenta broken links items in a sketch is time consuming. Is there a macro that can delete them all?
View 2 RepliesConstraint to unresolved reference geometry. Finding these magenta broken links items in a sketch is time consuming. Is there a macro that can delete them all?
View 2 RepliesI wish to delete all project geometry in the active drawingsketch with 1 click
But unsure how to get to these constraints.
Are these geometricConstraints?
What I have now doesnt work:
Select Case ThisDoc.Document.DocumentType
Case 12292:
Case Else: MsgBox("Current Document not a drawing document")
Exit Sub
End Select
[Code] .......
As we have layers in AutoCAD Product, I Started using different sketches and using them as layers by turning the visibility on and off.
Can we write a macro (button Click) to turn one perticular Sketch on and off???
For example If I had a Sketch named as GROUNDFLOOR, can I use a macro to turn them off and on when needed?
I am using inv2011. I have to create rec. blocks very often and in inv2011 . I have to constraint it in middle.
Can i write a Macto that gives me constraint rec block in sketch. This feature already available in Inv12.
What is the code to delete an internal rule of a document using a macro vba?
View 5 Replies View RelatedI 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.
I am trying to delete fill from a sketch I have done on a drawing. (See attached). Unfortunately I cannot find any way to delete without deleting the whole sketch. I tried as Inventor said to go into Annotate Ribbon and change Layer & Style but both these dropdowns show blank when I try that. I also tried going into Fill/Hatch again hoping the new one would overwrite the old one but no success.
View 4 Replies View RelatedHow can I delete some points that show in my sketch like these (see the attachments). by the way, they are related to sketch constrains?
View 6 Replies View RelatedI want to delete the inital Sketch (if was already opened) that Inventor creates when a new part is added.
I have tried this, but doesn't work.
Sketch sketchActive = docPart.SketchActive.
sketchActive.Delete();
I have a sketch reference that is giving a cross part failure error. I am unable to select the reference in the browser so I cant delete it or update it.
How to get rid of it. Deleting the sketch and starting again will be a disaster.
Using 2011SP2 XP64.
I have been using the addin "Save Run Macro" to automatically run a macro every time the "Save" button is pressed.
Any of the following questions about "Save Run Macro"?
1] When I protect the macro from viewing (so I can protect my code) "Save Run Macro" does not see the macro.
2] When I save the part for the first time (ipt, iam or idw/dwg) the macro does not run. I always need to run the macro again.
What determines the order of items shown in the Macro Manager? Is there anyway to have the modules show up in alphabetical order?
View 5 Replies View RelatedI have an assembly that has a component that has not only been deleted from this assembly, but has been removed from the vault. When I try to select a similar file on my local, just to get through this I get the followong error message and this cycle keeps going in circles. Wanting me to point to where this deleted file is.
This assembly remains unresolved and as a result of that I cannot check it into the vault.
Another frustrating things about his is in the dialog window that wants you to select a different file, there is no option to either select from the CC or the vault. Why?
I just hope the only solution is not to recreate this assembly. Because this is a subassembly used in upper level assemblies. Speaking of which those upper lever assemblies wont check into the vault either because of this issue.
Inventor Suite 2012
Windows 7
(Colossians 3:23-25)
I am currently using IV 2012 Pro and have run into some issues. When the company first started to use this program, they left me in charge to create our Title Block and Border templates. For our logo, I used a bmp file and placed that in out TB template. Recently I have replaced the bmp image of our logo to an ACAD block. My problem is when I open our template, I still get the unresolved link error prompting me to find the bmp image of our logo. Even though I have removed it from the template.
View 3 Replies View RelatedI always "Configure Default Template" on start-up, changing Measurement Units to mm and Drawing Standard to ISO. After Ok,
"the default template (standard.*) will be replaced according to your selected drawing standard or measurement unit. The original default template will be copied to Old Templates folder as backup. Do you want to overwrite?" Yes.
I have created a series of parts which i have assembled and saved on my USB. I have placed fasteners from Content Center and saved. When i change computer, and attempt to reopen my assembly files, i get a "Resolve Link" window, as seen in attachment, to which i don't know how to respond, and end up clicking "skip all", which results in assembly with unresolved components.
What are the steps i should have been taking to avoid ending up with unresolved components, assuming i cannot avoid changing computer.
In an assembly of a gymnasium divider curtain, I create a path on a 3D sketch which snakes its way upward through a series of grommets. A circular profile is then swept along the path to create a new part - a cable. The cable is its own unique part document and is saved and then vaulted in a job-specific folder. The curtain assembly has several instances of this cable. Everything looks fine until the assembly is closed and later opened for editing. When the assembly is opened, the cables show up in the browser as "Unresolved." Graphically, they have disappeared.
Windows 7 Professional, 64-bit
Inventor 2013 / Vault Collaboration 2013
I have drawings I reuse for different designs. I sometimes insert a parameter value from a part into a drawing dimension for different reasons. When I copy these drawings and no longer reference that particular part, the dimensions in question get deleted by turning off the "Preserve Orphan Annontations", but the fact that the dimension that referenced the parameter value is deleted does not affect the link, and the drawing tells me there are still unresolved parts! Is there someway to remove these references from the drawing? I can write a macro if I have to, just not sure if there is some other way to do this, or even if a macro can do this? I can apparently just pick some other part in the job that doesn't even have that parameter and the unresolved warning goes away, but is that sufficient? I would think an option in the resolve file dialog should let you delete the reference instead? Using IV2012.
View 2 Replies View RelatedI was recently updating an assembly which contained a part that had been subsequently deleted from my folders. I skipped it while opening the assembly, then deleted the part in the Model Tree (and replaced it with a different component). So, to summarize, the assembly no longer has the part in the Tree, and the part does not exist anymore on my system. These parts and assemblies have not been Vaulted, so that should not be an issue either.
My problem is that every time I open the assembly, it wants me to resolve this deleted part, and I have to skip it every time just to proceed. Once the file is loaded, I get no other issues, no "red cross" items, just a question mark next to the file name at the top of the Tree indicating that the file needs to be resolved.
The old part is gone; I tried recreating it using the same file name, and using the same third-party SAT file from which it was originally generated, but Inventor detects that it's not the original part and won't accept it.
How to get past this "part resolution" issue?
Autodesk Product Design Suite Premium 2013
Inventor 2013 64-bit Edition
Win7-64, 8-core Intel® Xeon® CPU W3550 @ 3.07GHz
NVIDIA GeForce GTX 560 Ti
454 GB HD, Intel® ICH10R SATA AHCI Controller
SpaceNavigator, 3.14.2 / 6.14.0 / 3.18
If an assembly contains unresolved file references, when I try to open it Inventor allows me to try and resolve this with the Resolve Link dialog. But if I choose to skip all for whatever reason, once I've opened the assembly there's no easy way for me to see which sub-assembly/assemblies contain the missing reference. I have to expand folders, patterns, assemblies, etc. until I find the one with the little question mark next to it. I prefer to work with unresolved links in this way sometimes because it just makes more sense working with the model than a bunch of file paths and file names in the Resolve Link dialog. But it's nearly impossible with large assemblies where the unresolved links may be burried deep.
Is there a way to list or somehow see which assemblies contain the unresolved links once I've already opened an assembly?
When I open up multiple assemblies at the same time Inventor cant find some of the part files, even though they are on my system. Many times if the part is in an assembly more than once, some of the instances will be there and only one or two instances will be "unresolved", of the exact same part. I can open each assembly one at a time and it will be fine, but that can be time assuming. I wasn’t able to find any other threads with a similar problem.
View 9 Replies View RelatedI am having trouble with Iparts getting a red cross due to dimensions and constraints to unresolved reference geometry. If, for example, I have Hole 2 dimensioned from Hole 1 in one member and in another member I suppress Hole 1 and Hole 2 I get an error stating (correctly) that the sketch for Hole 2 has a "Dimension to unresolved reference geometry". I understand why I should get this error if Hole 2 was unsuppressed and Hole 1 was suppressed but why do I get this error when they are both suppressed.
If I get this error on a member that has these two holes suppressed and I switch back to a member that has them both active the error dissapears. I guess in the end this is a question for Autodesk. Can you set up Iparts so that when a feature is suppressed Inventor completely ignores it instead of still trying to resolve it. This functionality is a major headache for us because we don't want to leave models with the Red Cross on but if we want to dimension our features appropriately (ie referencing other, related features) we have to leave a model with errors in it.
See attached part. If you switch within the first 2 members there are no errors, if you move into the last 2 members you will see the cross highlight.
I am looking to batch convert my IDWs to AutoCad DWGs without having to go through and manually open each file and save as etc. Right now I am using the export files task to do this. I have saved an *.ini file with all the settings I want and successfully create the task. After running the task it fails to convert all the files giving me an error message that says "File has unresolved references". This shouldn't be the case though because the IDW's open and reference the part/assembly files fine.
Autodesk Inventor Professional 2010 32bit edition SP3
I have unchecked resolve file references, etc, and still basically spends 5 minutes looking for files i told it not to look for. Why doesnt it just open the assembly or drawing, without waiting for ever?
View 3 Replies View RelatedI have Illusrator CS6, and it ask when I close, if I want to save to clipboard. Now the program runs slow. Is there any way to view clipboard and edit and/or delete items that are on it?
View 1 Replies View RelatedI am trying to create a script to specify a percentage of the selected items you want to remove.Here is what I have so far.
I still need to work out on the alert prompt and the if statement, but for now, I have the feeling that the selection.length keep changing each time Illustrator delete an object, and I don't know how to make it stick.
var selection = app.activeDocument.selection;
//alert prompt dialog for a percentage of deletion
for (var i = 0; i < selection.length; i++) {
if (Math.random < 0.5) { //need to work out the percentage
alert("yes")
selection[i].remove();
}
}
We have a data folder on the server mapped as network drive to the clients. The data folder contains all cad data stored from productstream professional.
Due to an over 10 year old environment the data folder contains a huge amount of cad files, library parts, iParts and so on.
Due to historical growth of the environment there are some missing parts (not available on the file system anymore), because they were deleted, are corrupt, and so on. At the root of the data folder there is located the typical cmpinv11.ipj inventor project file.
If you open an assembly either from productstream or via inventor (without productstream) directly from the data folder and the assembly has an unresolved child component because the file isn't there anymore it takes a very very long time until the dialog box for unresolved link comes up (waiting time several minutes 1...10min). Once reached this point one can skip and repair the assembly, of course.
But the question is, how to speed up the time for getting the unresolved link dialog?
The network connection itself is quite OK und the project file itself is also OK. The project file list of every user is pretty small (only cmpinv11.ipj and some standard ipj's).
We think inventor internally scans the whole project-file folders to ensure that the component is really missing but due to the huge environment this takes many minutes and is annoying.
Any bypass for that? Is it possible to apply a temporär setting before opening a potential inconsistent assembly? Or is there a setting like skip unresolved components by default or by a defined timeout?
Because it is Inventor 2010 (Productstream PRO 210) there is no File open Option Auto-Skip unresolved components (like in 2012) but even if it was I guess it wouldn't reduce the time to get the dialog either.
I've created a shared sketch and have used it with various features. Sometime those features are suppressed. The model works fine but the shared sketch generates a sketch doctor error because the feature that created it has been suppressed. Is there anyway to make the sketch suppressed so it doesn't trigger a sketch doctor error? Inventor 2013
View 2 Replies View RelatedHow do I duplicate the 2D line work from a part level sketch into a drawing level (overlay) sketch?
I started a simple 2D piping system diagram sketch by opening a new part file and using a sketch to stick draw the system schematic including some annotations. Then I opened a new drawing file and made a base view of the part file to bring a view of the original sketch into the drawing.
I realize now that it would have been much easier to have created the schematic directly in a 2D sketch at the drawing level, which would have made editing the annotations much easier at the drawing level, and there is really no need for the part file to exist. I have no intention of creating a 3D model or "real" part in the .ipt file, was just using it as a jumping off point to sketch.
I was thinking that I could correct my error in judgment by just copying the sketch and pasting it into a new sketch on the drawing, but it doesn't want to work that way. I have tried copying both the whole sketch at the browser level, and the entire sketch contents (all of the lines and annotations) from the opened part sketch, but when I attempt to paste either of those into the drawing, paste does not seem to be an option. I'd rather not have to draw the whole thing again, as in typical fashion, my once simple sketch has grown in proportion and complexity from its simple beginning.
I was trying to query some sketch points data from a profile Path using code as below. However the program stopped without telling the reason.
Code below:
i = 0;
foreach (ProfileEntity oSourceProfileEntity in oProfilePath) { switch (oProfilePath[i].SketchEntity.Type) { case ObjectTypeEnum.kSketchArcObject: { SketchArc srcSkArc = default(SketchArc); srcSkArc = (SketchArc) oSourceProfileEntity.SketchEntity; // error points[i] = srcSkArc.StartSketchPoint.Geometry; break; } default: { SketchLine srcSkLine = default(SketchLine); srcSkLine =(SketchLine) oProfilePath[i].SketchEntity; // error points[i] = srcSkLine.StartSketchPoint.Geometry; break; } } i++; }
First we imported an ".igs" file to inventor, which produced "wires". Then by promoting the wires it produced a 3-d sketch.
The model is in one plane and 2-D, and we are trying to use Ansys 2-D analysis, but in-order to do so it needs to be in a 2-D sketch.
The model is too large to be redrawn on a 2-D plane, how to convert it to a 2-D sketch
want to change sketch 2013 into the sketch of 2010
View 1 Replies View Related