Advertisement

02.15.2008 at 02:05PM PST, ID: 23167461
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

Fixing Wipeout Blocks Draworder in Civil3D 2008

Asked by daviper in CAD & Architecture Software, Visual Basic Programming, AutoCAD Software

Tags: , , ,

I wanted to be able to award points so I started a new post.  I tried this code from another thread as it is exactly what I wanted to do however I recieve an error actually moving the wipeout backwards toward the end of the code...  I pasted the snippet of code here and the complete code below.  I would really appriciate help with this as it makes using Civil3D quite a bit more of a pain!  Thank you

            For Each ents In blockObj
            If ents.ObjectName = "AcDbWipeout" Then
                Set arr(0) = ThisDrawing.ObjectIdToObject(ents.ObjectID)
                'Move the wipeout object to the bottom
                sentityObj.MoveToBottom arr
                'MsgBox ents.ObjectName
            End If
        Next
_________________________________________________________
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
Private Sub cmdFixWipeoutBlock_Click()
 
    Dim blockObj As AcadBlock
    Dim eDictionary As AcadDictionary
    Dim sentityObj As Object
    Dim ents As AcadEntity
    Dim arr(0) As AcadObject
    
    For Each blockObj In ThisDrawing.Blocks
    'Set blockObj = ThisDrawing.Blocks(bname)
        'Gxet an extension dictionary and, if necessary, add a SortentsTable object**this is done "inside" the block.
        Set eDictionary = blockObj.GetExtensionDictionary '***this was the key
        ' Prevent failed GetObject calls from throwing an exception
        On Error Resume Next
        Set sentityObj = eDictionary.GetObject("ACAD_SORTENTS")
        If Err.Number <> 0 Then
            If sentityObj Is Nothing Then
                ' No SortentsTable object, so add one
                Set sentityObj = eDictionary.AddObject("ACAD_SORTENTS", "AcDbSortentsTable")
            End If
            Err.Clear   '   just a way to get error numbers if/when they occur
        End If
        On Error GoTo 0
        For Each ents In blockObj
            If ents.ObjectName = "AcDbWipeout" Then
                Set arr(0) = ThisDrawing.ObjectIdToObject(ents.ObjectID)
                'Move the wipeout object to the bottom
                sentityObj.MoveToBottom arr
                'MsgBox ents.ObjectName
            End If
        Next
    Next
    ThisDrawing.Regen acActiveViewport
    'clean up anything that may be left over
    Set sentityObj = Nothing
    Set eDictionary = Nothing
    Set blockObj = Nothing
    Set ents = Nothing
 
End Sub
 
Loading Advertisement...
 
[+][-]02.19.2008 at 02:28AM PST, ID: 20927056

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 09:37AM PST, ID: 20940003

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.22.2008 at 12:52PM PST, ID: 20961315

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: CAD & Architecture Software, Visual Basic Programming, AutoCAD Software
Tags: AutoDesk, Civil3D, 2008, VBA
Sign Up Now!
Solution Provided By: dragontooth
Participating Experts: 2
Solution Grade: B
 
 
[+][-]02.25.2008 at 06:27PM PST, ID: 20981188

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 07:05PM PST, ID: 20981294

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 01:03AM PST, ID: 20982617

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 01:03AM PST, ID: 20982621

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628