Ad

Tuesday, November 10, 2009

Average Surface Slope

Sometimes different terminology is used that we aren’t used to. One example I’ve come across is finding the Average grade/slope of a surface. If we look in the Surface Properties we don’t see a listing for the Average grade/slope of a surface.

image

But if you take a look at the highlighted row we see we are provided with the Mean grade/slope. Mean is synonymous with Average. If you sit down and do the math you find that it’s the weighted average slope of the surface. For the surface above the unweighted average is 2.713%.

Select Unselectable Word Pictures

I can across a picture I couldn’t select in Word. It took me a while to find, but to select it use the Select option under the Editing portion of the Home Ribbon Tab. Hovering over it even tells you what it’s good for.

image

I used the Select Objects option to just select the picture to move it to the correct location.

Monday, November 09, 2009

Putting Alignment on Correct Layer

Sometimes things happen and your alignments are not on the correct layer. There really isn’t an easy way within the program to change the layer. We can create some customization that will make the task easier. This post will outline one way to automate the process.

To start out with I’m utilizing the sample alignment code that ships with the product (C:\Program Files (x86)\AutoCAD Civil 3D 2010\Sample\Civil 3D API\COM\Vba\Alignment\). I’ve gone ahead and deleted most of the code I don’t need.

Next I added the code required. First I check to make sure that Civil 3D is running. Next I create the variables need to get the alignment and then create the layer I wanted. Next I got the Object Layer the alignment should be on. For this code I’m assuming that the layer has the –* modifier for the alignment layer.

Next I’ve gone through every object in Model Space and checked to see if it’s an alignment. If it is then I set what the alignment layer name should be and then I check to see if the alignment is already on the correct layer. If the layer isn’t created I then create the layer. If the layer doesn’t exist in the drawing, and we don’t add it, then an error message will result. Then I assign the alignment to the newly created layer.

Sub PutAlignmentOnLayer()
'always get the objects again since MDI is supported
If (GetBaseCivilObjects = False) Then
Exit Sub
End If

Dim oAcadObject As AcadObject
Dim oAlignment As AeccAlignment
Dim sLayer As String
Dim sNewLayer As String

sLayer = g_oDocument.Settings.DrawingSettings.ObjectLayerSettings.AlignmentLayer.Layer


For Each oAcadObject In ThisDrawing.ModelSpace
If (TypeOf oAcadObject Is AeccAlignment) Then
Set oAlignment = oAcadObject
sNewLayer = sLayer & "-" & oAlignment.Name

' Check to see if the alignment is already on the correct layer
If sNewLayer = oAlignment.Layer Then
' The alignment is already on the correct layer.
Else
' Assign the correct layer
ThisDrawing.Layers.Add sNewLayer
oAlignment.Layer = sNewLayer
End If

End If
Next

g_oCivilApp.Update
End Sub



The code could be optimized by only examining the alignments in the sites and siteless, but I’m just doing this as an example. The same thought process could be used for surfaces, profiles or other Civil 3D objects. You can download the code here: http://style.civil3dreminders.com/AlignmentChangeLayer.dvb

Friday, November 06, 2009

#AU2009

au09_badgeI’m kind of going to AU. I’ve done a poor job monetizing the blog, so I don’t have the cash to pay for admittance. I am going to try to get into the DevLab and see if I can get some help on some things I’ve been working on as well as heading over to the blogger’s social. I’ve even signed up to be a Lab Assistant for a class.

I’ll also have a 3D Mouse to give away at AU thanks to 3DConnexion, so look for details later this month on how I’m going to give them away. You can follow 3DConnexion on Twitter.

While your on Twitter make sure to follow @mrcadman he’s looking to raise $2000 to the Susan G. Komen Breast Cancer Foundation (http://ww5.komen.org/) and looking to get over 2000 followers to his Twitter account. If meets both goals he’ll be shaving his head at AU for the cause. He’ll also have some fun spur of the moment using Twitter during AU.

Tuesday, November 03, 2009

AUTOCAD CIVIL 3D TRAINING NOTES TURKISH FIRST DISCOVERY BOOK!

Not quite sure if Google Translate got the translation correct, but if speak Turkish you can now get a Civil 3D book. The information is below:

İLK TÜRKÇE AUTOCAD CIVIL 3D EĞİTİM NOTLARI KİTABI ÇIKTI!!!
400 SAYFA VE KUŞE KAĞIDA
FİYATI 40 TL
Kitaplar PROTA Ankara ve PROTA İstanbul ofislerinden temin edilebilir .
Kargo ücreti alıcıya ait olmak üzere adresinize de ulaştırılabilir.
İstanbul Ofisi:
İrtibat : Semra Avcı
Yıldız Mah. Çitlenbik Sok.
Temizkanlı Apt. 34345 No: 22/3
Beşiktaş İSTANBUL

kitap

http://www.prota.com.tr

LinkWithin

Blog Widget by LinkWithin

Ad