At my company we use part numbers as file names for everything. for example, part number 09090P00100000, will be saved as 09090P00100000.ipt and will have a drawing saved as 09090P00100000.idw.
Within the drawing template file, i want to set up an ilogic rule that will check that the part present in the drawing corresponds to the file name of the drawing. This rule will run after saving and will just display a warning if the file names do not correspond.
I just need some code that will get the file name of the part displayed in the drawing. Note that we use iparts so the code must get the member file name and not the factory file name.
Dim oDrawingDoc As DrawingDocument oDrawingDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet oSheet = oDrawingDoc.ActiveSheet
[Code] ........
Autodesk Inventor Professional 2011 Windows 7 Enterprise, 64-bit
We have a lot of drawing that has some extra sheet for ref. and Inventor let me exclude count and print from those extra sheet. This work fine but when we check-in the drawing to vault it update or publish all sheet to dwf. This is very compass for us because we full the dwf file from vault to release and the sheet count is different than the print out.
Is there a way to EXCLUDE those sheet when check-in or update dwf?
I'm wondering if it is possible to check-in drawing into vault using i-logic?
If you check-in a drawing into our vault, it automaticly exports a .dwf to a storage server. We also have a simple button for making .pdf of the drawing to sent to the customer.
What i want to ensure is that the .dwf file and the .pdf file are the same. So when i press "make a .pdf" the rule will save my document, make a .pdf and (if possible) check it into vault. So from that point the .pdf for the client and the .dwf on the server are the same.
Is there a way to check in VBA if the design doctor has found errors in a drawing? I have a mass print script and it'd be handy to be able to skip printing any drawings that have errors like unatached dimensions and such.
I have done a drawing on my auto cad 2011 on windows and when i open it up on my auto cad 2011 for mac it only shows one layer in model space all the layers are on and thawed. how can i get the rest of my drawing to show up?
I just starting working with AutoCad 2014 Lt....and its great. I have a problem with the interface when I have two drawings open at the same time that are xref'd...the screen starts flashing, mouse dragging and the operations are very slow. Example,. if I have the plan open and the elevations open in two separate model space drawings but the plan is xref'd into the elev for reference. Is this an issue for others? What is the fix? This didn't happen in our older ACAD 2005. It is distressing, and I thought it was a server issue, but if I work off my station only, it still happens.
I am working on a project to assign balloons to components in drawing view automatically. Of course, I don't want to assign a balloon to a component which is invisible (hidden) in this drawing view.
So, is there any API function to check whether the component in the drawing view is invisible or hidden?
I use a building key for building reference (inserted as a xref into the individual drawings) in many of my drawings. I have layers for specific areas and rooms. I turn off the layers on the appropriate drawings (if the drawing is for room 301, I make sure all other layers are off and only 301 are on).
My problem come when I add a new layer to the key and since the key in xrefd into many drawings it shows up as always being on.
This makes to have to go back and do a little bit of layer control each time I change the xref.
VISRETAIN=1 only keeps the layers set to last save and everything added to the xrefs are basically taken from the xref (color, visibility, etc). Is there a way to set a variable so that you have to check the new xref layers before they show up on the referenced drawing?
Using 2011 with a PDF underlay. When the drawing is plotted as a PDF and the new PDF is opened, parts of the PDF portion of thew drawing are green. Changing the transparency, contrast, fade etc. of the underlay hasn't worked. I don't want to save the PDF underlay as an earlier PDF version because I'm snapping to parts of the underlay.
I need to export data to an excel file but I need to check if the file is already open.
Searching the internet I found this but I don't know what "imports" to use to use to enable it.
Public Function FileInUse(ByVal sFile As String) As Boolean If System.IO.File.Exists(sFile) Then Try Dim F As Short = FreeFile() FileOpen(F, sFile, OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.LockReadWrite) FileClose(F) Catch Return True End Try End If End Function
I'm looking for a way to programmatically check if a dll file is a AutoCAD plug-in, preferably getting the version too.The only thing I can think of is using
System.Reflection.Assembly.ReflectionOnlyLoad()
to load the dll, search thru its references looking for Acad-specific (acdbmgd etc.) get the reference version, compare it to a list....
Open an .AI file saved on a netapp or windows shared directory with full permissions (prior to saving I noted that all security groups are intact in file properties as we have 2 for read and write access)Make any changesTry to save and get the prompt: Can’t save preview, but all other information was saved successfully. The file couldn’t be found. ID = -43 (file is now corrupted and looking in security group file properties the 2 security groups designated for read and write access for the directory is now gone and shows an unknown security group????)
Save as works without a problem. Try to press save again and get This file has been modified outside Illustrator. Do you want to continue?Continue and prompted This file cannot be foundObviously the file preview icon goes from a thumbnail of the file to a generic iconWhen I try to open the file I get: Can’t open the illustration. The file is locked or in use.It led me to believe the issue was either OS X or CS5.5. I was able to open the file fine on Windows Illustrator CS5.5 make a slight change and resaved (which fixed the file and opens again in OS X and read/write security groups show up again?)Optionally, I was also able to fix the file to where I could open it in OS X by simply giving myself Read/Write access to the file from Get Info
Notes:No issues with the same file in 10.7.x.
I've tested on all available Mac Pro / MacBook Pro machines and issue doesn't seem to happen on MacBook Pro retina?Photoshop and InDesign not affected
I was working on my project today when the window popped up telling me to reload my pavement file. When I reloaded the file, the reference said it was unresolved. I tried to open that file directly, but it would not open.
I recently changed PCs and installed AutoCAD 2012 to the new machine. I was working on a patent and exported to PDF like I always do. The problem is that when I do that it automatically opens up the pdf in Acrobat after I've exported. I want to turn that feature off. I export dozens and dozens so the opening of every pdf would be very cumbersome.
recommend a command line extractor, i want to fill (manually with excel vba) datas (block attributes) in cells with the DXF i have in tons of projects, everything is ready except i dont know which lines to consider in the DXF.
Example : i have once instance of a block in a file, but i read the dxf as a txt and i see it (called "plc_a_1") at 5 places in the txt, and the real x,y coordinate fits one of them, but the attributes for it are like 500,000 lines further..
I've made a sketch in Photoshop Elements. The resolution was 743 by 663 pixels. I'm wanting to finish this in Illustrator, but when I open the same file (I have tried both PNG and PSD so far with the same results) in Illustrator, the image is extremely small, yet it says it is zoomed in 100%. In order for me to draw on this, it needs to be the same size that it looked like when it was opened in Photoshop. I understand the image is not actually resized, but the scale makes it appear smaller. And I also understand that illustrator's "pixels" measurments are incorrect (or so I have been told and observed).
I attempted simply rescaling the image myself with the select tool, but unfortunately I lose resolution and some of my sketch lines when I do this.
I'm not a master at any of these programs, so if you have an answer to how I could get the image scale to be "normal,".
I was wondering is there is a way to select an Inventor part file and see which assembly file or files that is is currently used in ? It would be extremely useful to be able to see a list of all the assembly files which are using one particular part so when modifying the part you would know which assemblies would change.
Product Design Suite Ultimate 2013 64-bit HP Z400, Intel Xeon W3550 3.07GHz 12.0GB RAM, ATI FirePro V4800 (FireGL)
I have a "steelplt.png" file that Inventor tells me is not in the correct library path. The problem is that it is in the correct path as defined by the project file. I cannot check in dwg because the "steelplt.png is not in the correct library path".
Product Design Suite Ultimate 2014 Vault Professional 2014 Windows 7 Pro SP1 HP-Z400: 2.67 GHz 12 Gb Ram Nvidia Quadro FX1800 driver 276.42
I have been a having a repeating problem with text in AutoCAD. For some reason when re-opening my file some annotative text is know magically different. Prior to closing the file my annovative text is only set to one scale and the text width is a specific size. Then when I re-open the file, the text now has 4 different scales and the width has shrunk to completely different, casing all my text to jumble and be illegible. To be more specific when I say width of text if I look in the properties window the setting "Model defined width" is different (always much smaller). This a particularly frustrating as I cannot override this setting when selecting in properties and have to stretch each text box back to size manually. I am currently using AutoCAD LT 2013.
if I open a drawing with DocumentManager.Open("drawing.dwg", false) and it is already open (or the user has no rights to write to it), the drawing is opened in READONLY mode without warning.
Is there way to check if DocumentManager.Open("drawing.dwg", false) will open the drawing normal or READONLY?
I am trying to use a shared project with my other colleagues. Problem we are having that we are not getting into how to change the File Check in/out Status (option is disabled/greyed) . Do we required administrative rights to do that?
Is there a known issue with inventor 2014 and STP file exports loosing their colour settings?
We export PCB's and assemblies to Altium PCB CAD tools as step files and have just noticed that the colours don't travel well at the moment! The assemblies just end up light grey/white. I tried an earlier stp export dated 2011 and that opened fine in Altium but not any 2014 exports.
I've spent the last 4 hours searching for an answer to this question, but I simply can't find one.
As a start I think you have to know that I'm currently using AutoCAD 2012.
Here's the problem: I need to extract some info from an AutoCAD table to a reference file that can be opened in Microsoft Excel. Everything I find on the subject is actually an answer to the question "How does <DATAEXTRACTION> work?" or "How to do an extraction of DATA in AutoCAD?"....
In this particular case I have a set of production drawings (cut tickets) for manufacturing of stone. And in every single sheet I have this material schedule or a table, if you wish, that is made with an AutoCAD table. In this schedule I have the height, width and thickness of the stone plate and with a function it measures it's area and volume. What I want to do is to extract those values into a reference file that I can open with Microsoft Excel, as I already said.
When someone opens a file on our server just to look at the image and then closes it without making any edits and does not save, the file has a new modification date and act like it was saved. How can I keep this from happening?