Jump to content

Recommended Posts

Posted

Hi everyone,

 

I have made an excel sheet that generates new drawings based on a template. It can open and save the new drawing using objectDBX, but my code to change the attribute values and text will not work.

 

At this stage, I have turned off the dbx and am just using an open and save application, but it is slow.

 

Can anyone point me in the right direction as to the changes I need to make on the following:

 

For Each oEntity In oACAD.ActiveDocument.ModelSpace

If TypeOf oEntity Is AcadBlockReference Then

Set oBlockRef = oEntity

If oBlockRef.HasAttributes Then

For Each varAttribRef In oBlockRef.GetAttributes

Select Case varAttribRef.TextString

Case strFindval

varAttribRef.TextString = strFillval

End Select

Next varAttribRef

End If

End If

Next oEntity

 

Any help or directions towards an ObjectDBX information link would be much appreciated.

 

Brett

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...