I want to create a function to pick a profileView(Alignment/.. in the future) in the drawing. I just get entity which type is Autodesk.AutoCAD.DatabaseServices.ImpCurve from GetEntity, and I failed when I try to cast it to Autodesk.AECC.Interop.Land.AeccProfileView. Is there any way I can pick a profile from drawing in .net?
Is there an easy way to get the geometric extents of a profile view and bands? It appears that in Civil 3D 2013 .NET the Geometric Extents returns the extents of the profile excluding the bands. I don't like the prospects of either doing the math for all of the bands assigned to the profile view or exploding the profile view to get it and the bands as a block and getting the extents that way. [URL]....
I have a drawing where i am not able to select multiple grips using shift/pick to make the grips "hot". I'm not able to make even one of the grips of a poly line "hot". However, while trying to solve the problem, i've opened another drawing where i AM able to make grips "hot". It doesn't appear to be a system setting issue.
I love the area command how you can pick multiple objects and they highlight and adds the total. I was wondering is there a way to do that same concept but with multiple objects and total it to acreage?
We have survey files that we xref into our design files. In the survey files themselves, the points don't change color. When we xref them in, the point markers (only the circular node on the actual point, not the line coming off of it) take on the color of whatever the current layer is in the drawing, only fixable by changing the current letter and regenerating.
Recently upgraded to Civil 3D 2013 and drawings opened up fine. Now today any drawing that opens shows the plan view as last saved but then after loading takes the drawing and shifts it into a 3d view similar to a crossection. Is there a setting somewhere that has been changed? I noticed after a windows 7 update was preformed.
I have programmatically created a block, which resembles the protective tube schematically drawn. The block consists of two ellipses of connected the two lines. This block tries to modify (also programmable). The modification consists of changing the position of the ellipse and the length of the line. Everything (almost) goes smoothly, until the pipe extends beyond its original length. The changes are visible, but I'm not able to pick the block beyond its original contour. So I can pick out such lines, if picked point is on the original length, but beyond its original length is not already. The same applies to the ellipse. The situation returned to normal, if I tried stretch the block (base point) or command _move. Regeneration of the model does not work.
I throw a piece of
using( Transaction tr = doc.TransactionManager.StartTransaction() ){//Block?Entity ent = tr.GetObject( per.ObjectId, OpenMode.ForRead ) as Entity;(...)BlockReference blRef = ent as BlockReference;(...)Ellipse ell1 = null;Ellipse ell2 = null;Line line1 = null;Line line2 = null;BlockTableRecord btr = tr.GetObject( blRef.BlockTableRecord, OpenMode.ForRead ) as BlockTableRecord;foreach( ObjectId entId in btr ) [Code] .........
I have a file that is behaving very oddly. Its a detail that I cannot pick some lines on in world UCS, but in Isometric views will pick ok, and to make matters worse, when I do a regen the lines in question vanish.
File attached, refer to AS DRAWN MKGP2, top left of drg sheet 324125_JJ_005_A.dwg
I was drafting away, and all of a sudden my crosshairs and pickbox disappeared. Once I move the mouse there's nothing in my drawing plane. I can type commands, and when I move the mouse up to the menu area I can pull down menus. I've opened up other drawings and the crosshairs and pick box are there.
What can I do to resolve this? Of course it happens during a deadline.
Using Autocad version 2009, windows 2007, Professional
In selecting a point in a drawing to connect new poly lines to existing objects, is there a way to set the order to which osnap elements are used?I have perhaps 1/2 of the osnap element settings activated. End point, Mid point, Node, Intersection, etc.
When I go to select, it's like everything EXCEPT End Point is recognizing. And while I can go to right click, and select end point, I am now wondering, if besides the rt click, there is a way to preset the priority, or order in which the osnap elements recognize the type.Without resetting the settings each time.
I'm writing a program (C#) that automates the notch tool within the frame generator add-in in Inventor. I can select one part and then select multiple other parts that will notch to the first selected part automatically. This will save me a TON of time if I get it working correctly. With that being said, I have it to the the point where the user selects the first part and then window multiple parts (these are stored and then cycled through later), then I use SendKeys to open the "Notch Tool", and now this is where I encounter my problem.
The Notch Tool is waiting for the user to Pick/Select one part. In my code I've tried to use the CommandManager.DoSelect method which does not register with the tool (I'll exit out of the tool and the part will be selected). My thinking is that this notch tool will only accept the CommandManager.Pick method which would defeat the purpose of the program as I do not want the user to have to go through the parts one by one notching them together.
Is there a way to simulate a mouse click on a selected occurrence within Inventor? Is there another approach I should be considering? And finally, how to rewrite the actual notch tool to allow multiple notches to be done at once?! I'll post a snippet of my code.
i am trying to make a custom palette to display some custom information pulled out from selected objects.i can deal with the palette part.
i want some code for when you click an object in model space then the property palette updates. i am gonna keep it simple so this custom palette only refresh to the last selected object. but i don't know how to make an event when mouse click the autocad object and then do my things. any codes in c# or vb.net would be nice.
so use commandmethod load in a command and there will be a palette there stay open, when user click on an object then it will get populated. what event do i use for the clicking?
Have noticed that on an AutoCAD 2013 workstation when the user make an ambiguous pick (that it, pick on top of two or more overlapped items) instead of just selecting one of them, there will appear a list box (whose caption is "Selection") containing all entities that may be selected in that spot and also None option. The user may pick the entity(ies) he/she want to have selected, but this behavior also prevents dragging the entities (since the said list box is shown again).
How do I get an onscreen point after/ during a VB.net dialog box is launched (as example like with Hatch add pick points. I would like to create button for this in a vb.net dialog box?
I am having a lag problem when quickly zooming in or using the selection window quickly. When quickly picking a window from left to right the first pick point lags and I would select some thing else. Iam using Cad 2012. Is there a command setting that has changed from Cad 2011 to 2012 ??
I am having trouble with my selection box. Ordinarily, when I am trying to select multiple object, I can just create multiple selection boxes and it keeps adding more and more objects to my selection. However, it recently started acting funny--it stopped selecting things after the first box was drawn. No matter how many boxes I drag, it won't add any more objects to my selection.
I have a block with a rotation parameter/action. I can't seem to get the rotation "circle" to stay in the same spot relative to the block when I rotate. Example: I make a block of a circle. Go into block editor and put a rotation on it with the base point in the center. Move the blue rotation circle to the center. Close block editor and do a rotation. The "rotation pick circle" will not stay in the center of the circle.
I am using autocad 2013, and My properties dialog is blank. Pick-first is set to 1. I have completely repair, registry cleaned, but now this problem is continues.
I am trying to understand how to select element of pick point through API.
I have found example in API manual, chapter "Interactive selection". Everything seems be clear but finally this example (and also others which I have found on web) doesnot work as I am expecting.
There is example:
Public Sub TestSelection() ' Create a new clsSelect object. Dim oSelect As New clsSelect ' Call the pick method of the clsSelect object and set ' the filter to pick any face. Dim oFace As Face Set oFace = oSelect.Pick(kPartFaceFilter) ' Check to make sure an object was selected. If Not oFace Is Nothing Then ' Display the area of the selected face.'''' there is cursor and content menu correct [code]...
I am able to select face, during selection is cursor shown as arrow with plus symbol, content menu show correctly zoom and pan commands. Unfortunatelly when this selection is done and message box show the value, the cursor and content menu does not return to correct state. Cursor is still with plus and content menu with zoom&pan. I have found that problem is with messagebox, just before messagebox is shown the cursor and content menu return to correct state , but after messagebox is shown and closed, then cursor and content menu is wrong. Why?
Finally I need it for my addin in C#, is there and better way how to select item or input 2d point?
The pickbox keeps turning into a rectangle and not a perfect square. It's width is less than its height. This keeps happening and is annoying. When I close AutoCAD 2012 and then reopen the drawing its a square, but soon turns into a rectangle.
I'm working with ACAD 2011. How can i change the line tool to pick a polyline every time i press the line button?? It's simply because I'm tired of the pulldown menu. I know the shortcut but I would like to be able to pick it in my ribbon as well..
know if there is a command which joins GetEnttiy() and GetPoint() functions. At the moment I'm using both commands one after another. Result I want would be one command where you can choose entity or select insertion point.
I need my users to pick a point p, enter a distance r and a direction v. A new point should be created r units away in vectorial direction. Therefore, the new point is located on an imaginary circle with radius r and center p.
Currently, the user picks the first point and enters a distance. Then, he has to pick another point (Editor.GetPoint with UseBasePoint = true), I calculate the vector between both points, create a new point (with location = BasePoint.location) and translate it d units in vectorial direction. This works of course, but the problem is, that the user doesn't see directly, where his new point is located, since he may pick a point closer to or farther away then r units.
Naively spoken, I want to restrict the line between BasePoint and new point while prompting the user to a fixed length. Native calls to ObjectARX-methods would be also okay.
Is there any built in option for a symbol to have a pull down pick list of options? I know that you can make it have a prompted entry, but can you do a sim idea with a pick list?
I am in the process of translating existing VBA code into VB.NET, and I just ran into some issues regarding how to interpret VBA's GOTO in VB.NET. In the VBA, the programmer has the code written thus...
Public Sub addTag() Dim ptStart, ptEnd As Variant Dim annotation As Object
[Code].....
Without the while loop, single execution works perfectly. But the while loop to emulate multiple (recursive) execution raises some issues.
My problem occurs during execution of my VB.NET code, and has to do with display of the generated entities after the user picks points.
User picks the start point, then picks the end point, but nothing is displayed in the modelspace; rather, user is prompted immediately to pick start point and end point all over again (because of the while loop I used to emulate VBA's GOTO).
However, once user presses ESC, all the leaders and blocks that were drawn during the execution of the while loop are immediately displayed.
Is there a way for me to make it so that EACH time the while loop executes, the end product is IMMEDIATELY displayed in modelspace at the end of EACH loop, BEFORE the user is prompted to pick points all over again (beginning of the next loop)?
The VBA code executes as expected during runtime, as a result of the GOTO StartAddTag line of code.
But I can't use GOTO in my VB.NET code because of its messy nature, so I used a while loop instead. And the while loop isn't performing as expected.
I am creating a schedule to pick up the room areas and additional information to do with artificial lighting. That bit is the easy bit.
What I am trying to do is put a column in the schedule that shows how many light points are within that particular space. I have looked into ticking the quantity box, but that picks up just the spaces. If there was a way that this could be used to pick up the blocks in a particular space, and not the spaces that would be the simplest way to solve this (I think anyway).
Just to let you know, I am using Dynamic Blocks for the light fittings. As I can have all the different types within the one block. I have heard that I can do this using the MultiView blocks (I haven't explored this yet), but the amount of blocks that I need is going to be increased (from what I know about MultiView blocks). The simpler this is, the better I believe.
I have tried using Count under the Automaitc Property, but when used, adds the blocks as an extra row, not into the desired column. I may have to add something to the block to get it to do what I want it to do, but don't know how to do this. At the moment, I am putting this information manually into the space properties.
The next part to my question, and again, I maybe asking a bit too much here, but I want to take two totals from two different columns to create an average. If I could do this in the one table, fantastic! If I have to create a second schedule to pick this up, that is ok I suppose, but I would then do the math for it manually and just write it in if that was the case.