• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Robot Structural Analysis

    Reply
    Distinguished Contributor
    mateaus
    Posts: 117
    Registered: ‎10-10-2011

    Re: Command VBA Projection Capture of a view

    10-13-2011 07:42 AM in reply to: RG_Adsk

    Ok thanks a lot,

     

    I would like lo have only the screen capture in a file like .jpeg.

     

    In Robot, I can only make a world file and the picture is in a bad quality.

     

    Can we save the capture in a better quality.

     

    I would like to make a macro saving many capture in C:Autodesk.

     

    Is it possible ?

    Please use plain text.
    Product Support
    Posts: 2,532
    Registered: ‎04-26-2010

    Re: Command VBA Projection Capture of a view

    10-13-2011 08:29 AM in reply to: mateaus

    yes it is possible :

     

     

     to create png screen capture with highest reolution

     

    ScPar.UpdateType = I_SCUT_CURRENT_VIEW
    ScPar.Resolution = I_VSCR_4096

     

    then you have to export printout to word or save as rtf

     

    or copy directly screen shot to clipboard

     

    ScPar.UpdateType = I_SCUT_COPY_TO_CLIPBOARD
    ScPar.Resolution = I_VSCR_4096

     

    then paste clipboard contents in Word



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Distinguished Contributor
    mateaus
    Posts: 117
    Registered: ‎10-10-2011

    Re: Command VBA Projection Capture of a view

    10-13-2011 10:25 AM in reply to: RG_Adsk

    Ok but I would like the macro export herself the printout in a folder like C:Autodesk/output.

    Please use plain text.
    Product Support
    Posts: 2,532
    Registered: ‎04-26-2010

    Re: Command VBA Projection Capture of a view

    10-13-2011 02:45 PM in reply to: mateaus

    Dim ScPar As RobotViewScreenCaptureParams
    Set ScPar = robapp.CmpntFactory.Create(I_CT_VIEW_SCREEN_CAPTURE_PARAMS)

     

    ScPar.Name = "My screen capture"
    ScPar.UpdateType = I_SCUT_CURRENT_VIEW
    ScPar.Resolution = I_VSCR_4096
    mavueRobot.MakeScreenCapture ScPar

     

    robapp.Project.PrintEngine.AddScToReport "My screen capture"

     

    ' saving printout \ report to file

    robapp.Project.PrintEngine.SaveReportToFile "c:\Autodesk\output\rr.rtf", I_OFF_RTF_JPEG

     

    'or directly opening printout in Word

    robapp.Project.PrintEngine.ExternalPreviewReport EPF_MS_OFFICE

     



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Distinguished Contributor
    mateaus
    Posts: 117
    Registered: ‎10-10-2011

    Re: Command VBA Projection Capture of a view

    10-14-2011 12:50 AM in reply to: RG_Adsk

    Ok thank you. There is just one command who don't work.

     

    ScPar.Resolution = I_VSCR_4096

     

    I didn't find it in the ROS manual V9.0.

     

    Is there a mistake or is it no more available ?

    Please use plain text.
    Product Support
    Posts: 2,532
    Registered: ‎04-26-2010

    Re: Command VBA Projection Capture of a view

    10-14-2011 12:54 AM in reply to: mateaus

    Hi

     

    This command is from ARSA 2012, ROS 12



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Distinguished Contributor
    mateaus
    Posts: 117
    Registered: ‎10-10-2011

    Re: Command VBA Projection Capture of a view

    10-14-2011 01:08 AM in reply to: RG_Adsk

    I have Autodesk Robot Structural Analysis Professional 2011.

     

    Does it work with this software ?

    Please use plain text.
    Product Support
    Posts: 2,532
    Registered: ‎04-26-2010

    Re: Command VBA Projection Capture of a view

    10-14-2011 01:22 AM in reply to: mateaus

    You already know it does not.

    It is implemented in ARSA 2012, Robot Object Modeler 12



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Distinguished Contributor
    mateaus
    Posts: 117
    Registered: ‎10-10-2011

    Re: Command VBA Projection Capture of a view

    10-14-2011 02:14 AM in reply to: RG_Adsk

    I only find the manual of ROS V9. Do you have the manual of ROS V11 ?

    Please use plain text.
    Product Support
    Posts: 2,532
    Registered: ‎04-26-2010

    Re: Command VBA Projection Capture of a view

    10-14-2011 02:42 AM in reply to: mateaus

    it should be there:

     

    "C:\Program Files\Common Files\Autodesk Shared\Structural\Help\2011\robotom.pdf" 

     

     



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.