In my plug-in I have some datagridview to show alignment data of all alignments in drawing.
I have a button called (regen) to update data in these datagridviews. I read again database drawing and re-source again datagridview. (method "upload_all")
I have read some posts and blogs about this: [URL] ....
and about overrule: [URL] ....
But I don´t understand almost.
I only want to execute method "upload_all" if some alignment is modified in the drawing.
Also, I would like to do it if some alignment is just created or deleted.
Autocad Civil 3D 2014 +SP1
Quad Core Intel i7 3770-cpu 3.40Ghz.
ssd samsung 840 pro 512gb+ssd samsung 840 pro 256 gb+1tb hdd
32gb RAM 1600 Mhz.
nVidia Quadro 2000.
Win 7 Pro 64bit
I created an alignment in one file. Then in another file I data shortcut that alignment in. From there I created an existing ground profile using that alignment. Later I modified the alignment. When I go into my profile drawing containing the existing ground profile, it did not update. I have had this happen on several projects and I can not figure out why it is not updating. My station range on the existing ground profile is set to automatic.
I used to do this all the time in 2012 and never had this problem. I am using 2013 with the latest update..
I have a group of classes that essentially implement the Model View Controller pattern. The view is a custom control contained in a PaletteSet. The Model is a class that wraps the ObjectID of a given block. I've used these classes to create a replacement for the Properties tool in AutoCAD (2011). Basically the UI can be used to edit the properties of a Dynamic Block. But I apply my own rules and behaviors to the UI.
I had no problems until I added support for the View to be updated when the block is modified (say by dragging to increase a length property). To do this I handle the Modified event of the block. After the block is modified, some rules are evaluated. If the rules result in changes to the block's properties, these changes are applied. This last part is where I'm having trouble.
When the "Rule Evaluation" code is invoked because of changes to the view (WinForms Controls), I am able to update the block's Properties using the following code without issue:
Public Shared Function SetParameter(ByVal BlockID As ObjectId, ByVal ParameterName As String, ByVal Value As Double) As Boolean Using dl As DocumentLock = Application.DocumentManager.MdiActiveDocument.LockDocument(DocumentLockMode.ProtectedAutoWrite, Nothing, Nothing, True) Using myTrans As Transaction = BlockID.Database.TransactionManager.StartTransaction Dim myBRef As BlockReference = BlockID.GetObject(OpenMode.ForWrite) For Each myDynamProp As DynamicBlockReferenceProperty In myBRef.DynamicBlockReferencePropertyCollection If myDynamProp.PropertyName.Equals(ParameterName, StringComparison.OrdinalIgnoreCase) Then myDynamProp.Value = Value myTrans.Commit() Return True End If Next Return False End Using End Using End Function
However, when this same code is invoked as a result of the BlockReference Modified event, AutoCAD completely crashes the momment the transaction.Commit() method is called. I've attempted to catch the exception causing the crash and role back the transaction, but AutoCAD simply exits and displays the error (Error handler re-entered. Exiting now.) and no exception is caught. Note that I do not use the BlockReference instance passed to the Modified event handler. Instead I store an ObjectID instance elsewhere which is consistently used to read/write the block.
Is there something I must do before commiting a transaction when using the Modified event of BlockReference? I checked, and the same "Main Thread" is executing whether the code is invoked from a UI event or the Modified event. I tried calling the Close method, which is attributed as Obsolete, on the BlockReference object before executing the transaction without any success.
I am going to collect objectid's of the moved items in drawing after they moved to destination. So I wrote an event to monitor move command , by using object modified event handler. when I run below code for every entity it collects 2 object id. One before move and one after move. Is there any way to just collect object ids after they moved?
Class EVENTS Dim MyDwg As Document = Application.DocumentManager.MdiActiveDocument Dim Myed As Editor = MyDwg.Editor Dim Mydb As Database = MyDwg.Database Dim Myobjidcoll As ObjectIdCollection
I using a data reference/shortcut to properly label an alignment in paperspace. However when I reference the alignment in and apply the labels the aren't the same as the original alignment that I am referencing. Is there a setting where I am supposed to apply a new beginning station.
Also it seems as though the stationing(distance) isn't even matching up 1:1 with the original drawing. For example in the original base drawing my alignment starts at 10+00 with the next PI at 14+76.98, but the stationing on the reference alignment starts at 0+83.33 with the very same PI being labeled as 1+23.08. So the very same distance is 476.98' in the real design and the drawing it's being referenced in, but the stationing of the referenced alignment shows it as 39.75 Units.
I've attached a screen of the beginning of the alignment.
Civil 3D 2012 Windows 7 Service Pack 1 Intel Core i7-2600 CPU 16GB RAM
Using Civil 3d2012, Is it possible to change the alignment label style set after the alignment has been created? For example, for an alignment that was created with alignment label set X - change the label set to alignment label set Y? It seems like this should be pretty easy, I must be missing something obvious.
I have a question on Alignment PI's. (Point of Inflection/Intersection)I have an alignment where some PI's have curves, others are merely hard bends.
Is there a way to automatically label the PI's even if they have an associated curve? (I'd like PI, PC and PT)Alternatively, can I only show markers at PI's without curves?
I’m wondering if there is a way to launch alignment grid view/alignment entities (attached) without the need to first launching “alignment”? This dialogue box is quite essential in editing the values of radius, degree of curvature and deflection angle for the selected curve.
Can I inherit the station from one alignment as the begin station for another alignment?
For example. Alignment 1 is 1000 ft long and starts at sta 0+00.
At sta 8+01, Alignment 2 begins and goes off in another direction.
I manually enter 8+01 for begin station Alignment 2. Life is good. Still in the design stage, and customer needs to modify Alignment 1 to avoid something. Now Alignment 2 intersects Alignment 1 at sta 8+15, but same N/E coordinates.
I manually enter 8+15 for begin station Alignment 2.
It would be better if Alignment 2 could inherit the begin station based on the new stationing from Alignment 1.
just a general question regarding contour labelling. Does it refresh automatically after I modified the labelling setting? My experience is no. Here is what I did, given an existing surface. Go to Surfaces -> Add Surface Labels -> Contour-Multiple at Intervals, I gave a decent interval, labels the entire surface with a few runs. Later on I decided to say hide the contour label lines, so I would go to Settings ->right click on Surface->Contour Labelling Defaults->set Display Contour Label Line to False, click Apply. So this setting will affect all the contour labelling created thereafter, but does it change the contour labels that I already created? If not, how can I change those labels?
I have a surface based on a point cloud. I decided to add a few more tiles of data to the point cloud and was expecting that the surface would update (after rebuilding) to include the new extents - but there was no change. The surface doesn't have any boundaries or breaklines but does have edits.
Do I need to add points to surface again? Will this duplicate the orignal point data or would it just add the new data. I didn't want to lose my edits if possible.
Attached is a zip file with the source code I used to modify the Parcel Map Check Report, as discussed HERE. It is essentially the code as provided with C3D2009, modified to reduce the amount of paper required to print them out. There are some other optimizations (allow sorting by columns is one), but this was mostly done a few years ago and I do not recall everything I may have done. Projects included for C3D versions 2010-2012.
I have a button which has a mousover/mousout animation. When i click the button, it will shrink down to 0%. when it does, my mousout event is triggert, which i dont want.
how can i disable the mousout event after the click event?
I have an addin with a palette that include some datagridviews.
I show in these datagrid, properties and information about all alignments in drawing.
With event commandEndend I can update all information if I use "grip-strectch" for some PI alignment.
However, we can modify alignment data from Panorama palette (geometry editor) and I would like to know if there are any event to catch it after modify data.
I have the same trouble that this post:
[URL]
Autocad Civil 3D 2014 +SP1 Quad Core Intel i7 3770-cpu 3.40Ghz. ssd samsung 840 pro 512gb+ssd samsung 840 pro 256 gb+1tb hdd 32gb RAM 1600 Mhz. nVidia Quadro 2000. Win 7 Pro 64bit
I'm getting several messages saying "value on wrong side of alignment" when I rebuild my corridor. I've checked the two target alignments that I'm using and they are on the correct side.
Some times I note the lack of a top warning-icon placed on top of prospector folder.
The idea is, for example, that in case I had a corridor out of date I dont see this "situation" until I navigate up to the corridors/corridor item, so I can forget easily the rebuild need. The posibility to see this icon near the name of my drawing should be very useful.
Running C3d 2012 here, but haven't used prior versions. I'm using fieldbooks to import survey data. If there is an error of some kind and I "Re-import event" for the fieldbook, then the occupied points from the field book are deleted out of the survey database and I get the resulting error of "point invalid" during the import. My fix is to go into my control drawing and import the control points from the drawing into the survey database then run the "re-import" again.
I want to put type on a perfect circular path.But first I need to stretch the type so it is longer vertically.Stretching type and using it as normal is easy.But how in the world do I use the stretched type on a path?
I imported Google earth surface (at eye alt 600m) to civil 3d 2012 and created an alignment of length 181m.
When I exported same alignment to Google earth , it showed the length as 190m ( the difference increases with increase in length of alignment) And also the profile view of the alignment in the Civil D & Google earth varies.
I have a project that comes and goes. It was actually started in Softdesk. Right now I'm working in Civil 3D 2012. I have an alignment that represents the left edge of pavement. Although I'm calling an offset alignment. It was created before they existed. So it's not linked to the centerline. There have been many changes to it over the past few years. Now it has a problem.
I wanted to edit in the Panorama. Right-click > Edit Alignment Geometry > select Alignment Grid View from the Alignment Layout Tools. When I went to the last segment in the Gird View, which was near where I wanted to edit, a segment about two thirds of the way along the Alignment was highlighted. Further investigation showed that although the whole Alignment would highlight when selected, all commands said the Alignment ended much sooner than the end station.
I've found that that alignment has been broken for quite a while but was intact at one time. My question is - What's the best way to repair/recreate it. I know I can explode it and create a replacement Alignment from the resulting entities. But is that the best way?
Civil 3D 2012 SP 2.1 Dell Precision T7400 Xeon CPU 3.16 GHz Nvidia Quadro FX 4600 12 GB RAM Win 7 Pro, 64-bit
This is strange. I wanted to label just the alignment name in a couple of places. I have an Alignment Name Label Style that does this. I now notice that it will capitalize some of the lower case P's in the curve label. Not the line label just the curve. They're applying the same style. It also changes back to lower case if I drag the label.
The style has one component and that is the Alignment Name and has Preserve Case set.
. How to assign proposed elevation to layout alignment along each station?. I know there is a way in LDT to assign proposed elevations to s specific range of stations or the full alignment, under menu "profiles/ FG Vertical Alignments/Create COGO Points" I am looking for the same one in C3D.
2. How to add connecting alignment label and station in profile view. For example I have an main alignment and in-between lot of other alignments are meeting with this alignment.
I want to show in profile view of the main alignment the meeting alignment's name and the station it meets with?