Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

attach ref & specify logical name and description...

Status
Not open for further replies.

redbyrd

Structural
Joined
May 22, 2008
Messages
2
Location
US
I was curious how I could specify a logical name and description when using the following command to attach a reference

Earlier post to refer thread565-107528

Sub main
Dim startPoint As MbePoint
Dim point As MbePoint, point2 As MbePoint

' Start a command
MbeSendCommand "REFERENCE ATTACH "

' When a command brings up a modal dialog,
' a later statement must close the dialog,
' or the MbeState.modalDialogByUser property
' should be set to 1 so that the user must close
' the dialog when the macro is executed.
' Also, you may not use the debugger "Step"
' commands while a modal dialog is displayed.

' Opened modal dialog "Attach Reference"

MbeSendCommand "MDL COMMAND MGDSHOOK,fileList_setFilterCmd *.dgn"

MbeSendCommand "MDL COMMAND MGDSHOOK,fileList_setDirectoryCmd C:\FILEPATH"

MbeSendCommand "MDL COMMAND MGDSHOOK,fileList_setFileNameCmd FILENAME"

MbeSendCommand "MBE1 CLOSEMODAL OK"

MbeSendCommand "MBE1 CLOSEMODAL OK"
End Sub

It only sets the file to attach and its path. I found that this line of code works, but which is better?

MbeSendCommand "REFERENCE ATTACH = BC03.DGN,,TxDOTstd,KHAimport,,,,"


redbyrd



 
I don't have any idea about the code your talking about but if you just reference the file in by file/reference - tools/attach, then attach the reference. Then highlight the reference and right click and hit properties then edit away.
 
The process you have describe is the manual method. I am trying to automate the procedure and run it on about 1200 design files, unfortunetly there are groups of files that need different logical names.

redbyrd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top