I am mainly developing for AutoCAD 2013/2014 how to implement a custom property as a drop-down list using OPM and .NET/C# wrapper. I have successfully created categorized custom properties already and can read/save them in XRecords via the OPM. I further implemented the members for IDynamicEnumProperty (using an ObjectARX DLL) in .NET/C# which are:
And I have implemented the GetCurrentValueData() and SetCurrentValueData() members in my .NET/C# wrapper as per the IDynamicProperty2 interface as following:
public void GetCurrentValueData( Object pUnk, ref Object varData ) {AcadObject obj = pUnk as AcadObject; if ( obj != null ){using ( Active .Document.LockDocument( DocumentLockMode.ProtectedAutoWrite, null, null, true ) ){using ( var tr = Active.Transaction ){ObjectId ObjId = new ObjectId( (IntPtr) obj.ObjectID ); DBObject DbObj = tr.GetObject( ObjId, OpenMode.ForRead ); if ( DbObj != null ){try {if ( [code]....
This code compiles without error but instead of the expected drop-down list the OPM only shows a field where I can enter or edit integer numbers, but there is no drop-down list when clicking on the field....
I have a bunch of GIS points that have been inserted into a drawing. All the points have data associated with them, gpm values, that I would like to make more clear. Is there a way to filter and color code them with out doing it by hand?
I am having trouble with my display I can get autocad to display my property box for subassembly I have all my locks turned off for lock location setting and when I want to insert a sub assembly the window will not pop up and I also notice that when I pick a entity in my drawing my layer to that object will not become active in my layer tool box.
I draw property plats for a surveyor and looking for a way to add the bearings (for example: N 56 15' 32" E) along the property lines. Right now, I use the Distance command to find out the bearing, write it down, and then add it to the aligned linear dimension text. I'm guessing there's a faster way to get a bearing along with the distance without typing it in.
The above sums it all up. Note the properties are NOT GREY they are what they are supposed to be.
The file was created in version 2012 by another designer now it is being completed in 2013 by myself.
I can do a quick fix by creating a wblock of the problem lines and text etc to enable a print out without the GREYING
problem but once the drawing is closed and opened once again the drawing has GREYED whatever is in model space again. (note that xrefed lines etc are fine)
Ps I have attached the problem file with all the xrefs and jaz unattached/taken off etc
I use civil 2012, and have a drawing with over 400 attribute blocks that are all set to be "green" in the enhanced attribute editor, properties tab. I would like for all of the attributes to be set to "by layer". However, I find that the it only allows me to change one block at a time. As said earllier, I have over 400 blocks.
I clicked on Auto Hide in property palette settings, and now can't bring it back. I click on ribbon where is the property icon or type in command line, the property palette doesn't show up.Reinstalling program didn't work either.
You are able you get range of properties, i.e length, chord length, start/end chainages, mid-ordinate.
I've notice lets for arguement sake 'chord length' text component editor is: <[Chord Length(Um|P3|RN|AP|GC|UN|Sn|OF)]> but is it possible to modify the code so i can insert half a chord length.
Ive tried
<[Chord Length(Um|P3|RN|AP|GC|UN|Sn|OF)]>/2 ---- doesn't work
<[Chord Length(Um|P3|RN|AP|GC|UN|Sn|OF)]/2> ---- doesn't work
<[Chord Length(Um|P3|RN|AP|GC|UN|Sn|OF)/2]> ---- doesn't work
<[1/2*Chord Length(Um|P3|RN|AP|GC|UN|Sn|OF)]> ---- doesn't work
Having problems using custom pipe properties in pipe label expressions in 2013? I have some expressions relating to stub callouts and the ones that directly reference the custom properties lose that reference every so often.
For example I have and expression called "STUB-Riser-Length2d" which is defined as "{Riser Length} / SQRT(2)" where "Riser Length" is the custom pipe property. Every week or so it changes to "/ SQRT(2)".
I haven't been able to find the pattern as to exactly when this happens yet. All expressions not referencing custom properties seem to be holding steady. The pipe catalog is on a shared drive on the network, if that makes any difference.
Civil 3D 2013 - Windows 7 Pro 64 - Dell T3500 - Xeon 2.67 - 24gb - Quadro 600
I am displaying stationing for my points, the points were brought in with a user defined classification. Then a table was created with the classification.
Base file- table looks good / when I xref the table it loses the station formatting.
I even tried importing all my user defined tables and styles and still didnt work
I need to update the user defined property values using C# code,I can see information on how to ge the values of UDP but cannot see any information on how to modify, edit, update or add information to the UDP of a point.Basically in the attached image i want to add "Street light" to the Type UDP.
I am using AutoCad C3D. I have drawn a building and now I am trying to position the building on a plot with uneven property lines using only “tie distances” from the spots on the property to specific spots of the building.
I do not know which C3D program functions (with just distances known) to get the building placed properly on the plot.
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
my C3D11 is having one hell of a time sorting survey points by description. I crash everytime I open a drawing, open a survey database, edit points, sort by description.
Trying to get the cut/fill quantities by computing the materials & I'm getting confused.
I imported another criteria & for ground removed it has existing as below & my datum as above. For fill, it has the datum below & existing above. The cut/fill matches a comparison between the 2 surfaces, but I just want to make sure I'm doing it right. Explain why for cut the datum's set to above & for fill it's set to below,
What setting/toggle needs to be turned on to preview the list of parcels in a site? I have a user who clicks on the parcels heading in his site and doesn't see a preview of the list:
Don't deal it as parcel preview when you actually click on the name of the parcel. That I do know how to toggle on. We're just looking for the list.
I just had an internal request for this and I had to look it up. So I'll share what I found and have a place to find it myself next time.
One way to do it is to select a COGO point to bring up the COGO Point Contextual menu tab. In COGO Point Tools you can select List Available Point Numbers.
I am having trouble understanding "Exercise 7: Creating a pay item list". How to find video of how this is created, or information to better understand the .csv and .xml utilized by QTO better. I am new to editing any .xml codes.
I have a long (2+ mile) alignment that has many "tangent intersection labels" which have station and delta angles. I need to create a table that lists the stationing and the deltas. How I can get this info. I have tried pipe networks and alignment tables w/o success.
I'm constantly picking the 'none' snap when i mean to pick 'nearest'. I want to delete 'none' from my list of snaps that come up when i click the middle mouse button. how is this done?
Dell Studio XPS 9100 Intel Core i7 CPU 930 @ 2.8GHz 12GB Ram 64 bit C3D 2012 SP3.0