

To minimize frustration (and mistakes) they make narrow specifications to what they can work with.

It it trivially easy to open an AutoCAD dwg in SolidWorks (or a variety of other proprietary or neutral format files that both AutoCAD and SolidWorks can read/write).īut if the end user (the customer) doesn't really know how to use their software (in my experience about 90% for any CAD program) they are reluctant to take one step beyond their experience level. Start = start.Add(new Vector3d(5.0, 5.0, 0.0)) Įnd = end.Add(new Vector3d(5.0, 5.0, 0.0)) Įd.WriteMessage("\nAdding transient line.") // This part constantly sending messagesĬtm.AddTransient(line, think there is a lot more to this question than you (or your customer) are presenting here. Create a transient line based on the entity's position and orientation

Using (Transaction tr = ed.())įoreach (FullSubentityPath path in paths)Įntity ent = (Entity)tr.GetObject(id, OpenMode.ForRead) Open a transaction to create the transient line IntegerCollection ints = new IntegerCollection(new int ) įullSubentityPath paths = e.Context.GetPickedEntities() Static void ed_PointMonitor(object sender, PointMonitorEventArgs e)ĪcGi.TransientManager ctm = New PointMonitorEventHandler(ed_PointMonitor) I am a newbie so please be more specific about your suggestions and I will try to understand them as much as I can. Here is the full code for you to examine. I have used both and modes, tried to change the transient line's coordinates to a fixed coordinate and added the method ctm.UpdateTransient(bref, ints) to the code in order to find a solution but none of them worked. Now I am working on a code which I changed some parts from another source in order to understand how I can achieve my goal. In another code I am using the method with block references as ctm.AddTransient(bref,, 128, ints) and it works without problems. I want to draw a transient line by a specific distance when I hover over another line, but when I use the method ctm.AddTransient(line,, 128, ints), it is not drawing any transient line.
