AutoCAD .NET :: Obtain Certain Vertexes Via Polyline ObjectID?
Jul 31, 2011
I create a polyline ,and then add it's objectId to a ObjectIdCollection defined by me.After the polyline is created,I would like to obtain it's second and sixth vertexes via this polyline's objectId.
View 6 Replies
ADVERTISEMENT
Aug 18, 2012
I have a drawing with a Polyline filled with Hatch. Also I have that Polyline ObjectId. So using this ployline ObjectId I want to erase the Hatch inside polyline. How I can erase the Hatch.
I'm developing the application using C#.
View 9 Replies
View Related
Aug 9, 2013
In attempting to follow a YouTube tutorial, working on a cone shape in vertex mode, when I select a single or row of vertexes, all vertexes get selected. When this happens, I note the coloring ranges from yellow at the selection point(s) graduating to black furthest away.
From this, I assume I have some other parameter/ mode invoked which I am unaware of.
View 1 Replies
View Related
Nov 25, 2012
I'm working with a mesh. Let's say one part of that mesh is planar 4 sided face. I need to split that face, so I use Split Face tool to split it into two 4 sided faces. Then, after some time, I need to merge these two faces, so I use Merge Face tool, but after faces are merged, vertexes on 2 edges of that face remain (they marked the start and the end of the split line).
Now how do I get rid of these vertexes? I tried simply moving them to the nearest corner, but if I do this, they do not merge with corner vertex, they only sit on top of each other. It becomes difficult to later alter them, and commands like ConvertToSolid do not work anymore.
So how do I delete or merge vertexes? (simply pressing Delete key while vertex is selected deletes edge and nearest faces).
Attaching screenshots.
The face I'm going to split:
1.jpg
Faces after splitting:
2.jpg
Vertexes that remain after merging faces:
3.jpg
These vertexes in center (on edges) are the ones I need to get rid of.
View 0 Replies
View Related
May 31, 2012
I can store some ObjectId from my drawing to text file. After that how we can get back ObjectId from string read from that text file. Or have a diferrent way to store the ObjectID.
View 3 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
Jan 3, 2012
I commonly send serialized data to .net functions.
One of the items I send in the entity name of something as a string.
Once my .net function is done, it constructs a resultbuffer to send back to lisp.
I had been doing this:
AcDb.ObjectId id = new ObjectId(Convert.ToInt32(ename));
but the Convert function is throwing an exception.
I do not recall this happening before, but forget if I ever tested it.
I am on win 7 64 bit.
View 9 Replies
View Related
Jun 29, 2012
Yesterday I post the message "Exporting pline and text" which turned out to work realy well.
However I need something else...
I need to select several plines and export their vertexes (as it is already done) BUT I also need to select SEVERAL texts and export them as well as their insertion point coordinates.
I tried with the code below but without any success... It gives the error "; error: ActiveX Server returned the error: unknown name: "TEXT"" This happens after selecting some texts and hiting enter.
Here is the
(defun c:zi5 ( / f i o s ss obj objdata texto texto_f nomebase nome_zi tx1 iPt)(vl-load-com)(setq nomebase (getstring "
Enter name for file:"))
(setq nome_zi (strcat "D:" nomebase "_zi.txt"))
(princ "Select your plines...")
(if (and (setq s (ssget '((0 . "LWPOLYLINE")))) (setq f (open nome_zi "w")) )
[Code]...
View 5 Replies
View Related
Jul 29, 2011
Question,
I have a list of blocks in a datagrid. When i double click a certain record it gets the objectid or handle.
Now i know how too highlight the object. But i don't want to highlight the entity but select it so i can change it's property's in the property pallet.
In the first screen shot you see the code i have. wicht highligts the record but the propperty pallet display no object selected.
But i want it to work like the next picture.
So the question is. When i know an entity's objectid or handle how do i select that entity programticly.
View 2 Replies
View Related
Aug 19, 2011
I need to use the Handle of the cloned object during a DeepClone override but AutoCAD shuts down when I try to use it.
This is the best I can think of but it still boots me out when I try.
Public Overrides Function DeepClone(ByVal dbObject As DBObject, ByVal ownerObject As DBObject, ByVal idMap As IdMapping, ByVal isPrimary As Boolean) As DBObject Try Return MyBase.DeepClone(dbObject, ownerObject, idMap, isPrimary) Catch Finally CompileCloneObjects(dbObject.Handle.ToString, MyBase.DeepClone(dbObject, ownerObject, idMap, isPrimary).Handle.ToString) End Try End Function
View 2 Replies
View Related
Sep 3, 2013
I have stored within an external database a handle of an entity within a drawing. If I have that drawing open and I retrieve that handle and then get the ObjectID from that Handle how do I convert that to a BlockReference so that I can then get position and attrribute values. I can get the position and attributes if I can just get the blockreference from the Object ID.
I am using the following code to get the ObjectID from the Handle:
Public Function ObjectIdFromHandle(db As Database, strHandle As String) As ObjectId Dim nHandle As Int32 = Int32.Parse(strHandle, Globalization.NumberStyles.AllowHexSpecifier) Dim handle As New Handle(nHandle) Dim ids(0) As ObjectId Try ids(0) = db.GetObjectId(False, handle, 0) Catch ex As Exception MsgBox(ex.Message.ToString, MsgBoxStyle.Exclamation, "Error in ObjectIDfromHandle") End Try Return ids(0) 'Return db.GetObjectId(False, handle, 0) End Function
I then want to use this ObjectID to get the BlockReference.
View 4 Replies
View Related
Nov 8, 2012
I trying to create an autocad obbject eg: line. after creating i need to add object data to the created object.
unfortunately i am not able to get the objectid of the created object.
code snippet on how to do this..
1. creating a object and add the created object to collect or selectionset
2. get the object id or refernece so i can attach object dat relavent to the objedt...
View 5 Replies
View Related
Mar 25, 2013
I need to make my application compatible with 2008 and have one error saying that ObjectClass is not a member of SubEntId (As ObjectID) in my InsertBlock routine.
Public Sub InsertBlock(ByVal blockname As String, ByVal trans As Transaction) Dim db As Database = Application.DocumentManager.MdiActiveDocument.Database ' Test if block exists in the block table Dim bt As BlockTable =
[Code]....
View 9 Replies
View Related
Feb 15, 2013
If I have a list of handles for Autocad Entities, how would I go about selecting these entities on screen so that the user could add to this selection or remove objects from the selection? I could go with object ids as well if needed.
I have been searching and searching and coming up empty handed or at least coming up with information that doesn't seem to do what I want.
View 6 Replies
View Related
Jul 21, 2012
I have noticed this problem while cutting with cut tool in vertex mode an editable poly. I am getting this preview of aligned vertexes. Can I switch this option off? Because it just get's in the way.
View 7 Replies
View Related
Jan 10, 2012
I wrote code for an application that stores links to lines and blocks in dictionaries using handles. The routines work well and I can manipulate the data marvelously, but if one of the lines or blocks get erased the whole danged opera falls apart. I knew this when I wrote the routines and have always been careful about using the ERASE command, as a matter of fact, I considered disabling it.
I am trying to make the package more robust. I have been experimenting with attaching a reactor (:vlr-erased) to the objects which fires when the object is erased. Unfortunately it fires before I can retrieve the handle of the object so that I can remove the references from the dictionaries. The only thing that I can retrieve once ERASE fires is the ObjectID. I can't seem to find a Visual Lisp routine to convert this value to a handle, does one exist? Is there an ObjectID collection that has any references in it?
View 2 Replies
View Related
May 16, 2011
How can I find interior vertexes ? I modelled character in 3DS Max 2011 and exported for Mudbox .But mudbox shows this error :
Mudbox has detected problems in the imported mesh
View 1 Replies
View Related
Mar 14, 2012
how to set the same coordinates to all vertexes, in my case by ''Z'' in one shot. Like just to select them, write ''Z'' cordinates and there you are. See attached IMG
i7 2600 3.4ghz/16gb DDR3/GTX 560/2x DELL U2311H 23''
View 9 Replies
View Related
Jul 23, 2013
I am having some trouble with moving vertexes on their local axis. When I move a vertex with the move tool (in local mode) the vertex moves REALLY fast and what is causing it. It works fine with the view coordinates enabled but just not on local.
View 2 Replies
View Related
Nov 6, 2013
Is there a way, when you are drawing a polyline, to have the tooltip box show the cumulative length of the polyline, rather than the length of the current segment being drawn?
View 6 Replies
View Related
Jun 7, 2012
I would like to take all the vertices out of a multiple-vertices polyline so that it reduces to just its start and end points, can this be done?
View 4 Replies
View Related
Sep 21, 2013
Due to modeling purposes, I need to convert a 3D polyline to a spline. What I have been doing is:
- change polyline fit/smooth to cubic from properties
- convert polyline to spline by typing spline -> object
- method -> fit from properties
You can see the original 3D polyline (green) and the resulting spline (magenta) in the attached drawing.When I zoom in and measure the distance between the two entities at different points along them, at some points the perpendicular distance exceeds 5 millimeters, and I want to ensure the deviation remains under 1 millimeter or even less.
I know I can change the knot parameterization of the spline, and this does work at some locations, but the difference increases at others.Why is there a 5.6 mm difference between the spline fit point and 3D polyline vertex, as measure in the attached drawing?
Now, I can go and manually stretch the fit point to coincide with the vertex. Also, I can add fit points between existing ones to drag the spline closer to the original 3D poly.
However, some of my polys are really long, and it is very time-consuming to do this manually while measuring points along the entities to make sure the distance stays small enough.
how to automate this process? For example a lisp that would maybe take the original vertex points, add say maybe 3 (not too many) new ones between them, and then generate a spline while making sure the deviation is less than the set value of 1mm? I am using AutoCAD 2013.
View 5 Replies
View Related
Nov 11, 2013
I've been working on a custom polyline object, and I've got it functioning!!Having said that, I plan to run its creation around picking a point for bounary selection.
(Other than trying to step through every vertecies) is there a technique I can thow the polyline data from a traceboundary result into my custom object? I've been trying to add the polyline from traceboundary to my object BEFORE it's added to the transaction by the way...I assume that's right, since I want to put it's data in my custom object then add my custom object to the transaction instead.
View 3 Replies
View Related
Feb 19, 2012
How can we obtain that the value of the Tag save as PDF in this case =
12045_Vermonden Frans_sta.096_PERSPECTIEF_19-02-2012
View 0 Replies
View Related
Jun 29, 2013
I want to convert a 3D polyline to 2D polyline.
View 5 Replies
View Related
Sep 16, 2011
Is there any way at all to draw a new polyline - from the endpoint of another polyline, and have it automatically join as one polyline from the existing section??
I know this can be done via PEDIT, but its so laborious and soo many clicks, and I have alot of segmented Polylines that I need to consolidate when I draft.
View 7 Replies
View Related
Jul 19, 2011
I define a vector via two points(ptStart and ptDirection).And now I want to get the angle between my vector3d and the X Axis.Here is my
Dim Ang As Double = ptStart.GetVectorTo(ptDirection).GetAngleTo(Vector3d.XAxis)
But the range is 0-PI.How can I change it to 0-2PI?
View 5 Replies
View Related
Nov 12, 2013
Is there a method to obtain the overall Site boundary? I have not found one, if there is, but it would sure come in handy when creating reports. We must always include the project Boundary as the first item in a report, so being able to add it to the existing reports would be a huge timesaver.
View 6 Replies
View Related
Dec 3, 2012
Is there any way to obtain the X and Y location of an iFeature that is placed on a center point? I cannot find a way to relate the iFeature to the point or vice versa with VBA. Holes are easy to relate but I am stuck on relating iFeatures.
My goal is to obtain the X and Y location of several iFeatures placed a piece of steel channel.
Inventor Professional 2014 64 Bit
Windows 7 Professional
NVIDIA Quadro FX 4600
Dual Intel Xeon E5540 CPUs
16GB DDR3 Ram
View 1 Replies
View Related
Feb 19, 2012
How can we obtain that the value of the Tag save as PDF in this case = 12045_Vermonden Frans_sta.096_PERSPECTIEF_19-02-2012
View 3 Replies
View Related
Sep 10, 2013
how to obtain the current layer state?
View 5 Replies
View Related