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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |