AutoCAD Inventor :: How To Change Name Of A Document Programmatically (C++ & COM)
Jul 16, 2013
I'd hoped that I could change the name of a part document like I did with sketches, simply assignment:
BSTR bstrName ;pPartDoc->get_FullDocumentName (&bstrName) ;wprintf (L"
Full document name was %s
",wchar_t(bstrName)) ;pPartDoc->FullDocumentName = L"Whatever" ;
But the compiler complains about no put method on that last line.How do I change the name of a Part Document programatically?
View 1 Replies
ADVERTISEMENT
Sep 21, 2013
How to programmatically change the position of the sun autocad?
View 6 Replies
View Related
Oct 24, 2011
I'm using sendcommand to draw various shapes in autocad.
the problem is my application (wpf) uses pixel units while autocad uses inches by default.
how can I change autocad units to pixel programmatically?
View 2 Replies
View Related
Jun 24, 2013
I am working with an application (written in Delphi) that interfaces to AutoCAD via AutoLisp and automation. The app is localized using translation strings that are stored in a database. We are working on translating the menus and dialogs on the AutoCAD side. The menus are no problem as it is easy to change the Label property of the menu items in code on the fly. However I haven't been able to find anything similar for the dialogs. Other then rewriting the DCL file on-the-fly is there any way to programmatically change the labels on the dialogs?
View 2 Replies
View Related
Oct 20, 2011
I already have been updating the DisplayName of documents but this name only shows in the Browser Bar and Title bar in Inventor.
When multiple documents are loaded, there are document tabs shown in het bottom area of the Inventor window, these show the File Name. I would like to show the DisplayName there but I don't knop how.
I'm using:
Win7 x64
Inventor 2011 pro
Visual studio Express 2008 - VB.NET
View 2 Replies
View Related
Aug 23, 2012
How do I change the document units using iLogic rules.
View 3 Replies
View Related
Jun 3, 2013
Im looking to make a simple ilogic rule that can toggle an option in the document settings, the setting I would like to change is the Document settings> Modeling> Participate in assembly and drawing sections
I would like a form to switch the option on and off quickly, its a really usefull function however I know a few of my colleagues wont use if they cant find it easly.
View 1 Replies
View Related
Aug 9, 2012
Im adjusting the CAD setup in our company, and therefore im looking for a way do change the document settings on all parts in an assembly (or the whole CAD directory) the easiest way possible.!
I have attached a picture of the setting i would like changed.
Is it possible with some Autodesk task scheduler tools..?
or can it be done with an ilogic rule?
View 4 Replies
View Related
Oct 3, 2008
This code works with no errors but does not change the text size. A user can over ride the text size (Font size) so I'm hoping it is possible thru code.
Dim oSketch As Inventor.Sketch
Set oSketch = oPartDoc.ComponentDefinition.Sketches("Sketch1")
Dim oText As Inventor.TextBox
Set oText = oSketch.TextBoxes.AddByRectangle(pnt1, pnt2)
oText.Style.FontSize = 0.1
View 3 Replies
View Related
Mar 18, 2013
I am trying to use iLogic to programatically create virtual components in an assembly. These components will by used as iProperty "buckets" to hold Machine Center specific information to be exported to production planning software. This information is hierarchical in nature and cannot be (conveniently) stored in the assembly iproperties directly.
View 3 Replies
View Related
Mar 1, 2012
Is it possible to auto-reattach dimensions programmatically?
I have an assembly that I'm suppressing/unsuppressing parts in and my drawing dimensions keep getting orphaned. I discovered the "Preserve Orphaned Annotations" option, which keeps them from disappearing on me. I can then reattach the dimensions via the design doctor, but who wants to click the doctor 6 times for 20+ dimensions?
View 4 Replies
View Related
May 17, 2012
In ipart there is an option to add and delete rows when working with inventor graphically.I have displayed the iPart table and the values in gridview using VB.Net.
The user then selects the row in datagridview and clicks the button delete.When the button onclick even is triggered i want to delete the selected row on ipart table inside inventor.
View 3 Replies
View Related
Jun 19, 2013
im trying to programatically add a parts list into a drawing whilst programatically creating the drawing - the code works fine without the parts list code. The error its showing is 'Parameter incorect' on the line that sais PartsList.add(... In the past when ive got this error with other code it has been because ive used an incorrect parameter (e.g. decimal instead of an integer).
My error is somewhere inside the oPartsList.add(>>ERROR SOMEWHERE HERE<<<)
oDrawDoc = InvApp.Documents.Add(Inventor.DocumentTypeEnum.kDrawingDocumentObject,AssyTemplate,True)
oSheet = oDrawDoc.Sheets.Item(1)
[Code].....
View 1 Replies
View Related
Aug 6, 2012
I am trying to programatically update Units of Measure on a part or document through Document Settings, but the changes are not reflected. I cannot save the file, because the file is a result of import, so I want to leave it up to the user. During import, I am recognizing what type of units the import file has, and I need to impose them on the document, and immediately show. I cannot use templates. There is a similar issue when the Units of Measure are updated manually through the screen, they are not reflected.
View 3 Replies
View Related
Dec 1, 2011
I'm trying to programmatically toggle a hole between tapped and simple. I found the Tapped property in the object browser but when I try to use it I get a "Method 'Tapped' of object 'HoleFeature' failed" error.
Public Sub setThd(tap As Boolean, doc As PartDocument)Dim hole As HoleFeatureDim holes As HoleFeaturesSet holes = doc.ComponentDefinition.Features.HoleFeaturesFor Each hole In holes If hole.HealthStatus <> kSuppressedHealth Then hole.tapped = tap End IfNextEnd Sub
View 2 Replies
View Related
Nov 18, 2011
Is it possible to programatically suppress dialogs or warnings and errors when I open Inventor?
View 1 Replies
View Related
Feb 11, 2013
I tried to print thisdrawing.modeldocument in a vba sub, but it doesn't work.
View 4 Replies
View Related
Jul 7, 2013
I set the document.window.text="aa" what i want
However, when the state of window the window is changed the text is re over to the document full name. I also use the AcadDocument WindowChanged event,but it is not use.
View 5 Replies
View Related
Jul 30, 2012
I write plug-in for AutoCAD in C# and I have a question. How I can change dws-file in active document?
I know how it's doing in LISP, but not in C#.
View 1 Replies
View Related
Aug 24, 2012
Is there event for change current (active) layer of document?
(it's not Database.ObjectModified - it's not raised).
I tried to do it with binding as:
public void Initialize()
{
var layerList = Application.UIBindings.Collections.Layers;
layerList.PropertyChanged += new PropertyChangedEventHandler(LayerList_PropertyChanged);
And -= in Terminate, but... Autocad 2012 chashed _sometimes_!!!
Impossible to understand when it happened. So I reject this way. Is there other way to handle this event?
View 2 Replies
View Related
Sep 20, 2012
I'm trying to change the active document window size with vb.net. This seems like it should be straightforward, but I'm having some trouble. Below is some code that I tried to use which I found on the AutoCAD DevBlog.. I thought I understood how this works, but I can't seem to import the correct references to make it work.
Dim doc As Document = Application.DocumentManager.MdiActiveDocument()
Dim docWindow As Window = doc.Window
Dim size As Size = docWindow.Size
docWindow.WindowState = Window.State.Normal
docWindow.Size = New Size(500, 500)
View 4 Replies
View Related
Oct 17, 2012
I have created a Document using sAIDocument->New().
Later I would like to change the title of the document, which I originally passed in on the AINewDocumentPreset.docTitle.
how I can do this programatically, or do you have to remove the document and start again?
View 1 Replies
View Related
Nov 23, 2012
CS6 & 5: Images (document frames) open in the extreme top right corner of my saved workspace, with the left margin of the image obscured by my toolbar. Is there a way to change this default so they open in a more user-friendly centralized position in the workspace?
View 5 Replies
View Related
Jan 19, 2012
I have a document with multiple pages. How can I change the background of only one page? In the layout settings I only can set the background for all pages.
View 10 Replies
View Related
Aug 27, 2013
when i open a new document and create a a custom document, CorelDraw automatich chage the format. When i create a document with 21x29,7cm (A4) Corel Make a document of 210x297cm. at the beginning of using Corel i have no problemen with it.
View 1 Replies
View Related
Dec 18, 2013
Can I change the default typeface in an Illustrator CC document? (I wouldn't use Meridian to win a bet.)
View 3 Replies
View Related
Jul 17, 2013
When I add a logo to my artwork in illustrator, import the illustrator file to a word template and print, it changes the printed colours dramatically..(black to blue, green to black and yellow to pink). Do I need to change a setting for that imported logo to make it compatible to print? Without that particular logo, the document prints fine.
View 2 Replies
View Related
Mar 15, 2014
We are designing a book in Id and already have a dcument defined. We have searched high and low. But we find nowhere to change the margins of the document, post-creation. (Of course those options present themselves, during document creation itself.)
View 6 Replies
View Related
Oct 16, 2012
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....
View 9 Replies
View Related
Mar 6, 2013
My requirement is to programmatically add labels to the objects on a CAD 2013 drawing in one operation (as opposed to typing them in). The labels exist in an external excel spreadsheet. I am new to CAD development.
View 4 Replies
View Related
Apr 10, 2012
I'm not finding any way to add a profile to an alignment using .net api.
Is com the only way?
I can get at pvis via .net, so seems off they would leave out ability to add profiles.
[URL]
View 9 Replies
View Related