Results 1 to 3 of 3

Thread: Plot using ObjectDBX

  1. #1
    I could stop if I wanted to
    Join Date
    2015-08
    Posts
    263
    Login to Give a bone
    0

    Default Plot using ObjectDBX

    Hi all,

    I'm trying to create a batch plot utility using ObjectDBX. But I'm not able to get the Plot or PlotToDevice methods. Could anybody please point me to the right direction?

    Code:
    Dim oAxDbDoc As New AxDbDocument					' Declare variable
    Dim i As Integer
    For i = LBound(lstDwgs.List) To UBound(lstDwgs.List)
    	oAxDbDoc.Open lstDwgs.List(i)				   'ObjectDBX
    	Dim item As AcadLayout
    	For Each item In oAxDbDoc.Layouts			   ' Start of loop through all layouts
    		item.ConfigName = cboPlotter.Text		   ' device name
    		item.CanonicalMediaName = cboPsize.Text   ' Paper size
    		item.StyleSheet = cboPStyleTab.Text		 ' CTB file
    		item.StandardScale = acScaleToFit		   ' Scale to fit
    		item.PlotType = acExtents				   ' Extents
    		item.CenterPlot = True					  ' Center
    		item.PaperUnits = acMillimeters			 ' Units
    		item.PlotRotation = ac0degrees			  ' Rotation
    '------------------------------------------------------------------------------
    ' Here I have a problem
    		' ??acPlotOrientationLandscape			  ' Orientation
    		' ??.plot								   ' Proceed with plot
    '------------------------------------------------------------------------------
    Next i
    End Sub

    Many thanks & regards,

    Abdul Huck

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,756
    Login to Give a bone
    0

    Default Re: Plot using ObjectDBX

    You can't plot with Odbx. It can only do database related manipulations. Plotting requires generating the geometry.
    C:> ED WORKING....

  3. #3
    I could stop if I wanted to
    Join Date
    2015-08
    Posts
    263
    Login to Give a bone
    0

    Default Re: Plot using ObjectDBX

    Thanks Ed.

    Regards,
    Abdul Huck

Similar Threads

  1. OBJECTDBX and VB
    By raj_thapar2003 in forum VBA/COM Interop
    Replies: 4
    Last Post: 2018-02-15, 01:36 PM
  2. ObjectDBX change UCS
    By per.fredrik.skold in forum Dot Net API
    Replies: 0
    Last Post: 2010-10-26, 10:17 PM
  3. BlockReferences with C# and objectDBX
    By ivan.markov in forum Dot Net API
    Replies: 13
    Last Post: 2007-06-19, 05:59 PM
  4. C# and ObjectDBX?
    By KevinBarnett in forum Dot Net API
    Replies: 1
    Last Post: 2006-09-19, 06:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •