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
ADVERTISEMENT
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
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
Aug 15, 2013
Is there a setting for extruding polygons so it doesnt leave the original polygon.
When i extrude a polygon into a 3D solid, it extrudes fine but it also keeps the original polygon which means i have to delete it?
View 6 Replies
View Related
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
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
Mar 14, 2012
how do i get an image set in one coordinate system come into a drawing in another coordinate system?
View 3 Replies
View Related
May 28, 2012
I want to know how to transform OCS Coordinate of A block object to UCS or WCS Coordinate .
It's Block's OCS Coordinate not other objects.
View 7 Replies
View Related
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
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
View Related
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
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
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
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
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
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
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
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
Jul 22, 2011
Is it possible to store a String Array to an XRecord?
View 1 Replies
View Related
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
Dec 18, 2009
I want to have a string of text that is curved at a given radius.
View 9 Replies
View Related
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
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
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
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
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
Nov 14, 2013
I have a list ("temp.dwg" "temp2.dwg") and would like to add the string "insert text here" into each item in the list resulting in ("insert text heretemp.dwg" "insert textheretemp2.dwg"). how would i go about doing that using LISP?
View 2 Replies
View Related
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
Jun 6, 2012
I have a list that is "acl", I would like to convert it to a string "acl", everything that I have read uses alot of code. Does this really take that much code to do?
View 9 Replies
View Related
Jul 11, 2013
Here's one that I could use on that i can't figure out:
I have a list of a bunch of descriptions that looks like this:
("00.02.00" "CTD01 Mainframe PT1 (top)" "GD01")
What I am doing is grabbing the middle item and i need to break this up into 2 lines. So, my code below grabs the first 3 "words" in the second item in the list and puts them in a list, but I need to convert this back to a string.
(setq desc6a (list (car (read (strcat "(" (cadr input6) ")" )))(cadr (read (strcat "(" (cadr input6) ")" ))) (caddr (read (strcat "(" (cadr input6) ")" )))))
I tried a bunch of ways but can't get it
View 8 Replies
View Related
Nov 14, 2012
How to split polygon?I am using "bpoly" function when I split the polygon but It's inconvenient. Any better way to split polygons?I go over the functions through help desk.
View 5 Replies
View Related