AutoCAD .NET :: Determine Units Of A Property?
Oct 24, 2012
I am selecting items and grabbing their DBObjects, and then reflecting on those objects to inspect properties of the object. For example, I might have a DBObject that is actually of type Pipe, Duct, DuctFitting, Line, etc, so I am using TypeDescriptor reflection to handle various cases in as abstract a way as possible.
My first question is this: Is this the smartest way to grab all of the attributes of a give object? Is there another call I can make the retrieve all of the attributes for a Pipe and a Line (to very different types of objects).
Second, when I see a property named Length and it is a double I know it has to be a length and that I can use the units from the drawing. Is there a way to programatically discover this other than the name of the property and its type (double)? In other words is there some metadata I could retrieve about any given property against which I am reflecting, or is there a smarter way to get these attributes which might provided said metadata?
View 2 Replies
ADVERTISEMENT
Mar 22, 2012
I'm trying to determine what my base units are in any drawing that i'm in (In modelspace). Essentially i want to either just read out the current base unit, or simply determine metric or imperial...or even both. I've been browsing through the forums and i've found a few examples, but nothing too detailed. Here is what i have so far, i have a feeling i'm on the write track. Is it possible to read out the value of "PlotPaperUnits"?
namespace UNITTEST {
public class UNITS {
[Autodesk.AutoCAD.Runtime.CommandMethod("UNITS")]
public void UNITSCOMMAND() {
Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
[Code] ..........
View 8 Replies
View Related
Sep 2, 2013
I am using Autocad Architecture 2013 and I am having an issue with Property Set Data. Whenever I create door or window tags, the Property Set Data is in the wrong units.
I have two separate projects, on in Imperial units and another in Metric. When I add a new door/window tag, the units for that particular door or window are incorrect. The drawings are setup in the proper units, the dimensions are as well. But when I create these tags and subsequently the schedules for them, they are in the wrong units. The tags/schedules for the metric project are in feet and inches and the tags/schedules for the imperial project are in millimeters.
View 2 Replies
View Related
Feb 12, 2013
Is there a way to control which of two 'Graphic Property definitions' are used via a formula property with a IF, Then, condition statement?
View 3 Replies
View Related
Aug 25, 2011
I have two related properties... One is a formula property, the other is a manual property.
In the formular property I'd like to set the value of the manual property.
View 1 Replies
View Related
Sep 15, 2011
I have been trying to find a method to extract custom properties from the custom property bag.
I have been able to extract the property value, using the "GetProperty" and the associated "GetValue" method, this method works when I know exactly what property name I am looking for. What do you do when you don't know the property name?
here is my code snippet..
dim myProps as acsmcustompropertybag = mysheet.getcustompropertybag
dim myProp as iacsmcustompropertyvalue = myprops.getproperty("SOMENAME")
dim myPV as string = myProp.GetValue
what I want to do is:
dim myProps as acsmcustompropertybag = mysheet.getcustompropertybag
dim myPN as string = ??????????.tostring
dim myProp as iacsmcustompropertyvalue = myprops.getproperty(myPN)
dim myPV as string = myProp.GetValue
View 6 Replies
View Related
Jan 7, 2013
I am using a dllimport from accore.dll, but the entry point for the method in the dll differs between 32-bit and 64-bit version of AutoCAD. How can I check whether the AutoCAD application is a 32- or 64-bit version, i.e. the dll is 32- or 64-bit?
View 7 Replies
View Related
Feb 14, 2011
Sometime in the past, I've drawn an arc, probably using an old deedplotting program, and imported it into Map3D.
I now have a new parcel that I'm plotting, and need to obtain the tangent of an arc on the parcel's perimeter.
Typically I draw a line, as close to the tangent as I'm able, and then toy with the bearings until I get it as close as I can.
This is a counter-productive means of finding the tangent bearing of an arc, and I'd really like to find a better way of doing this.
Is there a succint manner that I can pull a tangent line off an existing arc?
Using osnap this afternoon I thought I could do it, with the extension, but in testing it later, I found it was off by a good 2 or 3 degrees. While indeed a minor variance, I'd like to find a better way.
View 1 Replies
View Related
Jul 4, 2013
How to determine the length of a multiline. With a polyline if you click on it, it's length is displayed in the properties palette, but that doesn't work for a multiline as no length property shows up in the properties palette.
View 9 Replies
View Related
Mar 30, 2011
I have a .dwg drawing, and the same one but in .pdf file format. On the .pdf one, there stands the scale (1:500), but on .dwg one there is no scale. I was wondering, how could I determine the scale of the .dwg one?
View 9 Replies
View Related
Feb 17, 2013
Is there a way to determine FeatureLineStyle layer name using .NET?
View 2 Replies
View Related
Feb 22, 2012
Is it possible to determine which nodes are expanded using the API?
I want to make some changes to the node information in an assembly browser but as there are many hundred parts so I only want to do the operation on the expanded nodes to keep any delay to a minimum.
View 2 Replies
View Related
Jan 24, 2013
How to determine the order of objects selected (i.e text, block reference...). According to type or X, Y ..?
View 8 Replies
View Related
Dec 3, 2013
I need to project a surface/grading (or something of that nature) across my berm and have it intersect with the inside bank. This is better explained if you see the attached image. In the plan view you see 4 featurelines. Outside TOE, outside TOB, inside TOB then inside TOE. I need to project the outside TOE across the berm (shown in the section view) then create a new featureline where the line and inside slope of the berm intersect. Note that all the elevation shots vary as does the widths across the berm. What's the best way to do this?
View 9 Replies
View Related
Feb 11, 2013
is there any tool in inventor that can determine size of louver or quantity of louver base on heat generated?
we are designing a sheet metal box. we need to find out how many louvers we need.
Autodesk Inventor Professional 2014
Autodesk Product Design Suite Standard 2013
Microsoft Office 2007 & 2013
Windows 7 64bit
Synergis Adept 2013
Visual Studio Express 2010
View 6 Replies
View Related
Mar 1, 2013
Is there a way to use interference checks to determine what material needs to be subtracted away from other parts to get the clearance needed? (See Attached) The way I typically handle this is to project the lines from one part onto the sketch of another and proceed accordingly, however as you can see, it didn't work out well in this instance as the face of the part in question is not parallel with the sketch plane in the other..Therefore making the cut location inaccurate.
View 2 Replies
View Related
Nov 6, 2013
I want to check for the emptiness of a drawing file. whether the model space or layout is empty. is there any way to find it out.
View 1 Replies
View Related
Oct 26, 2012
How can I tell when a viewport (any viewport) in paper space is currently active.
This is actually related to a .NET programming error, whereby even when the drawing is in Paper space, if a viewport is active, I am unable to programmatically access the Layout. I need to be able to, at a minimum, detect this condition, then switch back to full paper space (i.e. de-activate the viewport) if possible.
View 4 Replies
View Related
Mar 2, 2012
how to determine the mass properties of bolt.
View 4 Replies
View Related
Aug 12, 2012
How do I determine position of the three 5,5 mm diameter holes? I am missing dimensions for horizontal position, am not I right?
View 1 Replies
View Related
Jul 25, 2012
How to display the annotations properly. Perhaps this may just be a display or view setting but I beleive I have checked them all at least 3 times =).
Even in the video he explains all the things explained here but does not explain exactly how to make the dims and ext lines notate and display properly, in model or paper view (view port). I have tried many ways to create a view port in paper space and annotation several dimensions. I constantly get different text sizes and ext line scaled differently within the same view port.....even after I have locked it.
I am also confused about notating dims in the model space within the paper space view port vs on the paper space outside of the model space view port? Perhaps this has something to do with my issues?
Again it may be because I don't understand another function/setting impacting this well enough yet?? I have tried/used every variable in the Dimension Style Manager on the Lines, Text and Fit tabs to no avail.
View 6 Replies
View Related
Apr 10, 2013
I have a somewhat complex document with many layers that have similar colors. Is there some way to identify the layer of a particular element using my mouse cursor in AutoCAD WS?
View 9 Replies
View Related
Mar 27, 2012
I have used color to determine line widths. The plotter set-up recognizes color and assigns the appropriate line width. My new company is determining line width by using polylines. Am I behind the times? Or, is this a better way. Willing to change.
View 4 Replies
View Related
Dec 13, 2012
As a part of an other recent topic (Interop 32/64 COM - Acad Mechanical),In VB.NET, how can I easily be sure to be in a Mechanical AutoCAD with every specific interfaces loaded (SymBBAuto, AcadmAuto...)?
I tried to get specific system variable like "AMVER" but this does not work.
I tried a "Try... Catch" while using "GetInterfaceObject", but this does not work at any time... sometimes I got fatal errors.I don't want to use the caption of the AutoCAD window, it is not enough reliable for me.
View 7 Replies
View Related
Aug 9, 2012
I'm looping trough positional representations in a assembly and I would like to determine if one of them is failing.
View 4 Replies
View Related
Sep 17, 2013
My problem is I have an object polyface mesh and any point, determine which points in the mesh object polyface not?
View 5 Replies
View Related
Oct 11, 2012
I need to extract the XY location of a surface label. Specifically, I am trying to determine the coordinates of the first picked point in a two-point slope label. But in looking at the IAeccSurfaceSlopeLabel interface in the ActiveX documentation, I'm not seeing where this data is stored. Even for a simple surface spot elevation label (IAeccSurfaceElevationLabel) I don't see a property that stores the coordinates.
View 6 Replies
View Related
Jul 30, 2012
Using the mvsetup, a colleague of mine rotated the model space in the viewport. I cannot determine what angle was used, is there an setting in the properties manager to show the rotation angle or other way to find out?
View 5 Replies
View Related
Sep 12, 2013
I create custom sheetmetal styles from time to time via the API. It fails when the flat pattern has issues. Is there a way to determine if the flat pattern has errors/issues so I can delete it as required?
View 3 Replies
View Related
Dec 3, 2012
I am looking for a way to verify what version an AutoCAD file is without opening the file. I have a customer that requests the files to be in an older version of AutoCAD and for QA purposes I would like to verify that the files we are sending out are in the correct version.
View 1 Replies
View Related
Apr 30, 2013
If an assembly contains unresolved file references, when I try to open it Inventor allows me to try and resolve this with the Resolve Link dialog. But if I choose to skip all for whatever reason, once I've opened the assembly there's no easy way for me to see which sub-assembly/assemblies contain the missing reference. I have to expand folders, patterns, assemblies, etc. until I find the one with the little question mark next to it. I prefer to work with unresolved links in this way sometimes because it just makes more sense working with the model than a bunch of file paths and file names in the Resolve Link dialog. But it's nearly impossible with large assemblies where the unresolved links may be burried deep.
Is there a way to list or somehow see which assemblies contain the unresolved links once I've already opened an assembly?
View 3 Replies
View Related