×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

pen assignments

pen assignments

pen assignments

(OP)
hello,

i've written an vba-program for automatic plotting in autocad. The only thing i don't know how to do is programming for assigning a ctb-file.

does anyone know how it works?

mvgr

RE: pen assignments

Here is a snippet of ours, it may be a help...

If ThisDrawing.ActiveSpace = acModelSpace Then
    Set acObjSpace = ThisDrawing.ModelSpace
Else
    Set acObjSpace = ThisDrawing.PaperSpace
End If

Set acLayout = acObjSpace.Layout
    acLayout.RefreshPlotDeviceInfo 'Needed since we changed the plotter support paths

With acLayout
        .ConfigName = strPrinter 'set printer first so options exist
        .StyleSheet = strStyle
        .CanonicalMediaName = strPaperName
        .PlotType = acPltType 'must be set before centerplot property
        .PlotOrigin = dblPltOrigin 'this must come before centerplot
        .CenterPlot = blnCtr
        .PaperUnits = acMillimeters 'default----
        .PlotRotation = acPlotRota
        .StandardScale = dblPaperScl
        .UseStandardScale = True
        SetPlotParameters = True
    End With

"Everybody is ignorant, only on different subjects." — Will Rogers

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources