AutoCAD VB :: Open DWG File From Code
Dec 14, 2012
I want to open a dwg file from code in my program. I have a string variable containing the full path and file name. I want to open the dwg file in an instance of Autocad that is already running, I don't want to open Autocad. The program is written in VB 6.0.
View 2 Replies
ADVERTISEMENT
Jul 10, 2011
I'm using VBA in Inventor 2010. I want to create a macro that adds 3 fields to a part for LRNGTH, WIDTH and THICKNESS, as well as comments and setting the export to be export out. My program is below and works well. However i would like to end the macro with the parameter dialog box open. What code do i need to do this?
Sub AddBomFields()
'adds LENGTH, WIDTH and THICKNESS user parameters to part
Dim oPartDoc As PartDocument
[Code]....
View 8 Replies
View Related
Mar 26, 2013
I have a datagridview with the list of all alignments in the drawing.
If I put a button and press it, can be posible open the window "properties alignment" about the selected alignment in the datagrid?.
And can open directly the tab page "Design Criteria"?
I would like change some values directly from the window of Civil 3D in this case. I don´t want re-write the database(db) with code.
Autocad Civil 3D 2014 +SP1
Quad Core Intel i7 3770-cpu 3.40Ghz.
ssd samsung 840 pro 512gb+ssd samsung 840 pro 256 gb+1tb hdd
32gb RAM 1600 Mhz.
nVidia Quadro 2000.
Win 7 Pro 64bit
View 4 Replies
View Related
May 14, 2012
I am copying chunks of code from the My First Plugin tutorial and am using the code that opens Inventor to start the form. I have both Inventor 2012 and 2013 installed on my system. I have gone in to the properties and changed the .dll reference file to read out of the bin/PublicAssemblies folder in 2013, however, when I run my Windows Form, it will open Inventor 2012 instead.
View 2 Replies
View Related
Mar 1, 2011
I have autocad civil 3d 2008 in my pc. From last 2 days I got a different problem i.e. when I am selecting open / save command from File menu graphical file select explorer is not opening just message in the command window . Previously I used to select files using graphical file explorer.
View 6 Replies
View Related
Aug 27, 2013
Illustrator CS4 will not open Error Code 148:3
View 2 Replies
View Related
Sep 26, 2013
Every time i try and open an image i get this error code....says, Adobe Photoshop CC has stopped responding, then it closes the program..
View 2 Replies
View Related
Oct 7, 2012
When I try to access edit in PhotoElements 8 I get error code 150:30 and it will not open.
View 1 Replies
View Related
Aug 28, 2011
I included a VB code in our drawing template, but then I get the "Warning: You have a non-empty VBA project.." message. If I copy the code into iLogic, I just get an error message. Why it runs fine as a separate macro, but doesn´t work in Inventor, or how I can include the code into the template? URL....
View 2 Replies
View Related
May 17, 2013
I implemented the code from the autodesk developers guide for plotting. [URL] .... I made a few minor changes such as making it a sub instead of a command, and commented out a few of the plot settings
the routine seems to work except that I don't get a PDF
I added the actrans.commit() to see fi that might work = nope.
also note that ACF.acdoc & ACF.db in my code replace acdoc & acCurDb in the original code
'<CommandMethod("PlotCurrentLayout")> _ Public Sub PlotMe(suBpath As String, subFileName As String) '' Get the current document and database, and start a transaction 'Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument 'Dim acCurDb As Database = acDoc.Database Using acTrans As Transaction = ACF.Db.TransactionManager.StartTransaction()
[Code] .......
View 3 Replies
View Related
Feb 7, 2012
I specify a template when I open a new auotocad file and drawi some shapes in autocad with c#.
the problem is the coordinates that I use to draw shapes does not match the template file and therefore the shapes are misplaced.(I am using centimeters for my code).
how can I change the coordinate of the template file to match my code coordinate?
View 1 Replies
View Related
Aug 21, 2013
Looking for the ilogic code to place in the drawing rule to close *.ipt file that was recently open.
View 2 Replies
View Related
Aug 23, 2012
A part of an application I'm writing involves detaching a specific xref of known filename and path from an open drawing. I'm having a surprising amount of trouble figuring out how to do this or finding any examples "out there" (A'desk forum, the googles, A'desk developer's guide). I have the code for attaching an xref, but detaching is presenting unexpected problems.
View 6 Replies
View Related
May 11, 2012
I would like VBA to convert all layouts in drawing to single .PDF file.
Now I can convert it to PDF file with separate PDF files, but not know process to convert to a Single PDF file with all .DWG layouts.
View 1 Replies
View Related
Feb 19, 2012
LISP code to link to a scr.file.I would like to run ACADDOC.lsp with abobe code everytime I open a drawing.But I want to link the KISP file to script file of mine like C:
View 3 Replies
View Related
May 21, 2012
correct font style from 1071 group code in style table of dxf file ? I am able to read the Font name and font file name from group 1000 and 3 respectively, but not able to get the font style: whether it is Regular, Bold, Italic etc.
I know i have to decode the long values in 1071 group codes like: 50331682, 50372882 etc. But dont know how to arrive the Regular, Bold, Italic etc Font Style. How to decode this value ?
The requirement of above information to me is that i am making a Graphics viewer for a specific purpose which reads and displays Graphical Entities from DXF (ascii) file.
View 1 Replies
View Related
Jun 10, 2013
I am building a custom batch update for our drawings to take border definitions as well as custom iproperties from a current template and push them into a specified inventor dwg file. I built a form for the users to select the template they want to import into a list of files they place in the form. The program opens the template, get's all the information (iproperties, border defs, etc... using the active document to get the document) then iterates through the list of the users doing the following for each file (also getting the active document to get the items in each file): open, replace border definition, insert any non-existent custom iproperties, save and close the file. It works great when I keep the open visible set to true for the files. When I switch the visible property to false for each one of the files I want to open I get an error similar to this: Systems.InvalidCastException: Unable to cast object of type 'Inventor._DocumentClass' to type 'Inventor._DrawingDocument'. at ---- then my button click event here.
Does inventor technically not see a document as an active document if the file is not visible when opened?
View 2 Replies
View Related
Feb 14, 2014
How do I write a javascript code to open InDesign template, import XML, save and export to pdf?
writing the javascript code to open the InDesign file, import some xml that will be randomly coming in and then saving the document.
View 1 Replies
View Related
Feb 15, 2013
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
View 8 Replies
View Related
Aug 13, 2007
I'm working on this project for work and it's written in old code, like machine press code that's 20 years old, anyway, our company changed logos and I need to upload the new code for the logo, but the old is in HEX format, and I need to get the HEX Code for the new image.
How can I get the HEX code for an image in photoshop? Is it possible in Photoshop?
If not, what could I use to get the HEX code?
View 2 Replies
View Related
Sep 2, 2012
I've recently updated one of my PC's. I tried to launch VS x5 and I received a "corrupt file message" with error code 38. I've read all of the previous threads here and others online referring to Protexis Licensing V2 in the Services tab. I've un-installed, reinstalled several times. Would be nice is a "Repair" option was available. I've entered the serial numbers, several times, made it to the "Register Product" page but can never get the program to start. This was an update from VS 4 and I've entered the serial number for that when prompted. I have the program working just fine on another completely new system. Both are running Windows 7.
View 1 Replies
View Related
Apr 30, 2012
I have just started getting an error code saying "File format Mismatch" when I attempt to save a VPS file as an mpeg. I've been doing this for years now I get this error code.
View 1 Replies
View Related
Oct 3, 2012
I was wondering if there was an option to set Inventor to display the full file path for the current file open ? At present I am only seeing a short description of the name of the active file - I wish to see it's full file path similar to what AutoCAD displays.
Cad Manager/Senior Designer
Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)
View 3 Replies
View Related
Apr 24, 2013
I'm using Autocad Civil3D 2011, Version 3. Just yesterday I noticed that the file date shown in Autocad's open file dialog box shows an earlier time than Windows Explorer, which shows the file date and time correctly. When I enter the "time" command on the autocad command line, the correct time is shown for the "last updated" time.
For example:
The Autocad open file dialog box shows the file having a time/date of 4/23/2013 3:54 PM
Windows Explorer shows the file having a time/date of 4/23/2013 4:10 PM
"TIME" command at autocad prompt returns the following:
Current time: Wednesday, April 24, 2013 3:55:35:454 PM
Times for this drawing:
Created: Thursday, March 27, 2008 5:49:57:104 PM
Last updated: Tuesday, April 23, 2013 4:10:56:299 PM
Total editing time: 17 days 15:31:26:967
Elapsed timer (on): 17 days 15:31:26:967
Next automatic save in: 0 days 00:09:58:237
I rebooted and restarted autocad, and resaved my file with the same results (although with different times-but again the autocad open file dialog box showed an incorrect, earlier time). I have never had this problem before, and it is driving me crazy as I usually sort my files by date to assure that I am working with the latest file.
View 4 Replies
View Related
Oct 30, 2012
is possible to retrieve the information of the reference in the iam file without open the file in session ? Opening with notepad the iam file, at the end of file, the references is contains in the planar text.
Is possible to retrieve documentation for this request ?
View 1 Replies
View Related
Mar 9, 2012
As an engineering company we have started to convert hundreds of our drawings from AutoCAD to PDF using a batch utility.
However every file that is converted into a PDF file is opened by a PDF Viewer. We want to prevent this.
I opened my *.pc3 file and removed the check from the appropriate box. See below
I press OK, then save the file and close. However when I reopen the file, I see the box for Openining in PDF Viewer has been rechecked. No matter what I do, I cannot permanently remove the check from this box.
View 5 Replies
View Related
Mar 22, 2011
I am unable to use the file command open, new etc. I click on open and nothing happens no file box opens. As soon as you do anything else the program says not responding and you have to close it down. I can click on an autocad file in windows explorer and bring up the file this way but as soon as you try any file command such as save as the program freezes again. I am running windows 7 professional and the autocad LT 2011 64 bit program.
View 9 Replies
View Related
Jun 10, 2012
When I have 2 files open, one minimized and the other visible on the screen, when I quit the file showing on the screen and then open the one that was minimized, it comes up w/a blank black screen. There is no way I have found to get the info in the file to display.
Then, if I save the blank screenof previously minimized file, close it then reopen it the info is back on screen with changes made to the file intact.
View 4 Replies
View Related
Dec 22, 2011
I am trying to make a script file to open a drawing and run a lisp routine. They both work independently just fine, the script file will open the all of the files fine... and the lisp is in the startup suite and works in all the files. But when I tell the script file to open the first drawing then run the lisp it hangs trying to open the next file after running the lisp. I have Filedia set to 0, but the message I get when it goes to open the next is "No canvas exists. click New Canvas." (And on top of that... Filedia even set back to 1 still does not display the Dialog box anymore, I have to shut down AutoCAD 2012 and start again then it works.) I Have tried several ways, Opening one at a time then run lisp, and open all files first and then try to run lisp (that closes the file after running) and try and run it again in the next... It will only run the lisp one time and then locks up from there.
View 7 Replies
View Related
Apr 29, 2013
if i need to rename or change anything in the iproperties of ipt, im doing it from the vault.my problem is that, when i change something in iproperties of an ipt thru vault, i have to open the idw to update it.
as most of the iproperties in ipt shows in the idw.
its easy to change the properties in vault. but its deleting its purpose if i have to each idw to make sure i have the updated idw.is there a code where i can open all idw and save the same file and checking to the vault automatically?
View 9 Replies
View Related
Aug 9, 2012
I want to create an AutoCAD point clound (.pcg) from a FARO laser scan file (.fls). When I go through the steps in AutoCAD Mechanical 2013, I get the following error (see attached file for screen shot):
Progress.......
Failure! - Fail to open scan file.
Complete, 0 point cloud created, 1 failed.
View 1 Replies
View Related