AutoCAD Inventor :: String From DocumentTypeEnum In C++?

Jun 11, 2013

is there a function which returns the currently open document type as a string, something like this:

const char* const GetInventorDocTypeDesc(DocumentTypeEnum eDocTypeEnum);

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Remove Iproperty Mass Unit String From Mass Value In Text String?

Oct 3, 2011

I've been looking for a solution to remove the unit string ie Lbs, g, kg from the value given from a 'Mass' value in a text string.

As you may all know, creating text and having a 'physical property - mass' value...the unit string is there...

Lots of people on here have the problem...no-one has got a solution.

Until now...

Basically...open the part you need to get the mass property of in your text string.

Follow the instructions on this webpage...this is the first part...

[URL]

Basically, this creates a Mass property value in the parameters table that you can call on as a text parameter.

It's similar to the custom iproperty model - mass but NOT the same.

Once you have done this, you can go to the drawing of the part and create a text string in the drawing and call it up as shown in this procedure. BUT it still has the unit string.

Here's the best bit that you want to know...

To get RID of the unit string...open up the part again from the drawing...click on the parameter icon...find the user parameter...in the Nominal value column, right click on the value and you get a pop-up that gives you 3 options...

Custom Property Format, Make Multi Value & Delete Parameter.

Click on Custom Property Format.

The pop-up window comes up...showing you the property type...in my case...the 4 left columns read Text, g (grams), Format & Precision...

On the right hand side I have a Preview of the text...then 3 check boxes...Units string, Leading Zero's, Trailing Zero's.

Units string is checked.

Uncheck it.

Close it...Save your part...go back to the drawing and hey presto!...the text now shows the weight you require as a straight value...no units!

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Changing String Of Text / Multitext / Dimensions To Another String

Nov 16, 2012

i failed to find one which would change string of a text to other for all types of objects. I mean it was usually either only multitext, or only text, dimensions or attributes.creating one which would change in abt 200 drawings:

-001

-002

-003

to:

-00001

-00002

-00003

in attributes, text, multittext, leaders, multileaders, dimensions..... at the same moment?

It is meant to be used in ScriptPro (by loading lisp in script).

If not possible, then can also open each file and run the lisp in each of them - still would save lot of time.

View 4 Replies View Related

AutoCad 2D :: Edit One Text String And Same Change Can Affect Another Text String

Jan 12, 2011

I was wondering if there is a way that AutoCad can edit one text string and the same change can affect another text string, instead of editing the same thing twice.

View 9 Replies View Related

AutoCAD Inventor :: Where To Find ControlDefinitions Cmd List In Red String

Jul 14, 2013

Where do I find ControlDefinitions Cmd list in Red String.

The question is link of this: [URL] .....

View 1 Replies View Related

AutoCAD Inventor :: ILogic Extract Data From String (CSV)?

May 9, 2013

Seeing this error

Error on Line 10 : 'SealString_1' is not declared. It may be inaccessible due to its protection level.
 
Dim SealString_1 As String Dim SealString_2 As String Dim SealString_3 As String Dim SealString_4 As String Dim SealString_5 As String Dim SealString_6 As String Dim SealString_7 As String For Each S As String In SealString_1.Split(",") If i = 0 Then name = S If i = 1 Then name = OD If i = 2 Then name = ID If i = 3 Then name = DE If i = 4 Then name = LI i = i + 1 Next S

View 1 Replies View Related

AutoCAD Inventor :: Possible To Create String To Stretch As Part?

Jul 26, 2012

I would like to create string that would be tied to a rod and wrapped around an axle.  Then when the rod is moved the string rotates the axle, but the string continues to grow as it is being pulled.

View 2 Replies View Related

AutoCAD Inventor :: Converting Text String Into A Number

Dec 20, 2011

I have a custom iProperty with a text value of "Plate, Steel 140 mm". Is it possible to strip out the 140 (text) from the string and convert it to a number?

View 7 Replies View Related

AutoCAD Inventor :: Display Imperial Dimensions Using Unit String

Apr 7, 2011

I have had a request to display imperial dimensions using a unit string "in." (no quotes). The default Inventor 2011 display does not include the period. Can the default be modified, or a new option added to the list?

View 7 Replies View Related

AutoCAD Inventor :: IProperties - Adding Extra Text To Existing Fx String

Jun 26, 2012

I am populating iProperty "Description" field using expressions from the custom fields. These custom fields are exported from the parameters.

Is there a way of typing in extra plain text into the field onto the end of the expression without losing the expression formula?

Inventor 2010 Pro SP4, Vault Collaboration 2010
HP Z820 Xeon E5-2643 0 @ 3.3Ghz 16.0GB RAM
Nvidia Quadro 5000

View 2 Replies View Related

AutoCAD Inventor :: Write Text String To Parts List With ILogic

Mar 5, 2013

I'm trying to create an iLogic rule that will print a text string to a cell or coloum of a parts list in inventor.

My code so far...

Sub Main()
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
[code]......

I want to print what is in the Message Box into a cell in the parts list, and i am stumped. The cell i am trying to print to is a user property in the Parts List.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Rule To Print String To Parts List?

Mar 5, 2013

I am trying to make an iLogic rule that gets mutliple strings from different places, and prints them to a user property in the Parts List.

My ultimate goal is to print the drawing number, sheet number and the item column value to the user property with the format being...

"XXXXX-X-X"

So far, i can get the drawing number from an iProperty and the sheet number easily. But im getting stumped on obtaining the item coloum value and printing it to the same row.

This is what i have so far...

Dim DWGNUM As String = iProperties.Value("custom", "DWG Number")
SheetNumber = Mid(ThisDoc.Document.ActiveSheet.Name, InStr(1, ThisDoc.Document.ActiveSheet.Name, ":") + 1)
MessageBox.Show(DWGNUM+"-"+SheetNumber, "DXF Number")

And print the message box output to a column in the parts list

View 7 Replies View Related

AutoCAD Inventor :: Fill Multivalue List In ILOGIC With Produced String (FILTER)

Nov 4, 2011

I try to filter an Excel List and therby fill certain Multivalue Parameters with the filtered data.

The filter works fine an provides me a string looking like the sytax for the MULTIVALUE.SETLIST command.

B6string = FilterReturn  &  Chr(130) & B6String = 75‚80‚250‚65‚45‚250

Unfortunatly this string gets exactly as ONE entry in the Parameters Value listing !

MultiValue.SetList("B6_Lochbild_Länge", B6String)

I also tried

MultiValue.List("B6_Lochbild_Länge") =  New Integer () {B6String}

and also

B6string = Chr(148) & FilterReturn & Chr(148) &  Chr(130) & B6String

with the same effect !

View 2 Replies View Related

AutoCAD Inventor :: Write Text String To Parts List Column With ILogic

Mar 5, 2013

I'm trying to create an iLogic rule that will print a text string to a cell or column of a parts list in inventor.My code so far...

Sub Main()
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
[code]...

I want to print what is in the MessageBox into a cell in the parts list, and i am stumped.The cell i am trying to print to is a custom property in the Parts List.

View 3 Replies View Related

AutoCAD Inventor :: How To Set Default Unit String Unchecked In Parameters Custom Property Format

Aug 24, 2013

I have generated frame that has 100 members in it. Is there a quicker way of changing G_L unit to a mm so that I don't have to go into all 100 parts to change the custom properties? also I do not need unit string to be appear in my BOM.

View 2 Replies View Related

AutoCAD .NET :: Convert String To ObjectID

May 2, 2006

It is possible to convert an ObjectId into a string. But is it also possible to convert a string/int into an ObjectId?

I want to save some ObjectIDs to a text-file to use them later. But I haven't found something to convert them back.

View 7 Replies View Related

AutoCad 2D :: Get Coordinate String Of Polygon?

Jun 5, 2013

Possible to easily get a coordinate string of a polygon?

As in the coordinates of each of the vertexes within a polygon?

For example Easting1,Northing1,Easting2,Northing2, .... etc)

View 6 Replies View Related

AutoCad 2D :: Proper Way To String Dimensions

Oct 24, 2013

I'm currently having a debate within my drafting dept. as to which string of dims is more correct..

View 9 Replies View Related

AutoCAD .NET :: Find Layer Name Containing String Value?

Apr 15, 2011

I need to find layer names containing a specifing string value How do I cylcle through Layer names checking named string contents?

View 3 Replies View Related

AutoCAD .NET :: Custom Dimension Of Coordinate String

May 26, 2013

I want to custom dimensions about text of the coordinate in DWG. It should be like this:

I select a point then there displays a string of X,Y,Z coordinate of the point.

I select the second point to place a horizontal line(fixed lenth base the string font size)  and then the string.

the whole process is like radialDimension,but what I need is to describe the point x,y,z.

and the drawing should consist of start point(actually is the target point too) and end point and the line connects the two points and a horizontal line and a string.

I think this should be completed using Dimension Class(should be CoordinateDimension based Dimension).

give me some codes. Codes is better in C# of VS2010 for autoCAD2010.

Actually there is a simple solution for this. Using c# to draw two lines and a string. But this is really bad experience when I want to move the string.

View 6 Replies View Related

AutoCAD VB :: Insert Unicode Character Into String?

Feb 6, 2013

I need to insert a registered brand character (®) into a string for a product model using code ("Model Name ®"). How do you handle Unicode in VB .NET?

View 2 Replies View Related

AutoCAD .NET :: MText Formatting Codes To VB String

Oct 16, 2012

I am lifting mtext from a drawing and then working with the result.  For some reason the "\pxi-" at the beginning of the string I am lifting is converting to " pxi-" when worked with as a string in vb.net.  The result is this, when I apply the string back to mtext I get a bunch of messed up formatting codes at the beginning rather than a formatted piece of text.

This seems to be related to the "\" Is this automatically getting modified by vb or autocad when I pull the source text?

View 3 Replies View Related

AutoCAD .NET :: Attribute Reference Text String

Sep 4, 2013

I change a block's attributes programmatically using thisfunction I created:

private void UpdateAttributes(Database database, Detail det) { using (Transaction tr = database.TransactionManager.StartTransaction()) { //Grab the BlockReference the detail refers to. BlockReference block = (BlockReference)tr.GetObject(det.ObjectId, OpenMode.ForRead); //Iterate over the Attribute ids. foreach (ObjectId [code].......

You can ignore the Detail and Detail Attribute objects as they are also user-defined.  Also note that this function expects the database to be currently open for working on.

Everything in this function works fine, but there is a strange quirk that becomes noticeable only when I use this function to edit an attribute that has its "Invisible" property set to "No".

Below, is the original block that is edited via this function:

As you can see, the block has a number with 4 digits (for our purposes, call this the Block Number).

View 6 Replies View Related

AutoCAD Map 3D :: Converting Text String To Block

Aug 16, 2012

In a drawing, i have several text strings, 's', that i would like to change to a known block... is this able to be done? there are over 3000 's' in the drawing, hoping to change them all to the same block. let me know if this can be done.

View 2 Replies View Related

AutoCAD VB :: String Extraction / Modify Commands Using VB?

Sep 3, 2013

I want to extract 3 different variable strings based on one large string such as:

"2013_ARCH-Lev01.dwg"       <or "2014_STRC-Lev00-BM">

and the 3 variables are:

Dim YEAR As String
Dim TRADE As String
Dim LEVEL As String
YEAR = 2013                           <or 2014>
TRADE = ARCH                        <or STRC>
LEVEL = 01                              <or 00-BM>

I was thinking of using the first four digits "(0,1,2,3)" for YEAR?

using the next four digits following the underscore "_(0,1,2,3)" for TRADE?

using the rest of the digits following the dash "-(unknown)" for LEVEL?

View 1 Replies View Related

AutoCad 2D :: Converting Text String To Known Block

Aug 16, 2012

in a drawing, i have several text strings, 's', that i would like to change to a known block... is this able to be done? there are over 3000 's' in the drawing, hoping to change them all to the same block.

View 9 Replies View Related

AutoCAD .NET :: Possible To Store String Array To XRecord

Jul 22, 2011

Is it possible to store a String Array to an XRecord?

View 1 Replies View Related

AutoCad :: Keep Original String In Text Override?

Aug 15, 2011

I know it is easy to enter special characters in using “%%” escape sequence. However, if I am not entering in single or multiline text, but rather in a dimension annotation’s “override” field, I found that the newly entered text completely overrides the original dimensional annotation.

For example, if originally I had a diameter of 7.98, and I would like to put a Φ sign in front of it to make Φ7.98, but it seems that there is no way to preserve the original content of 7.98 together with the Φ sign.

Is it possible to keep the original measurement within the string? What is the special character representing the original measurement?

View 5 Replies View Related

AutoCad 2D :: String Of Text Is Curved At A Given Radius

Dec 18, 2009

I want to have a string of text that is curved at a given radius.

View 9 Replies View Related

AutoCAD 2010 :: Replacing Part Of A Text String?

Mar 27, 2012

I am trying to add text to a set of text strings in a drawing.

The tricky part is that not all of the text strings are the same.

For example, change part numbers

123, 125, 456, 892

to

123-70, 125-70, 456-70, 892-70

Is there a way to do this for all of the strings at once?

View 9 Replies View Related

AutoCAD 2010 :: Copy A Text String From One File To Another

May 2, 2012

I have spent the last three days writing a lisp program that will copy a text string from one text file and paste it into another.  I have tried using the write-string, get string, prin1, princ and print functions with no success. 

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved