• Help Home
  • English (US)
    1. English (US)
    2. 简体中文
    3. 繁體中文
    4. Čeština
    5. Deutsch
    6. English (UK)
    7. Español
    8. Français
    9. Magyar
    10. Italiano
    11. 日本語
    12. 한국어
    13. Polski
    14. Português (Brasil)
    15. Русский
AutoCAD 2025 Developer and ObjectARX
    • Customization and Administration Guides
    • DXF Reference
    • AutoLISP and DCL
    • ActiveX and VBA
    • ObjectARX and Managed .NET
      • ObjectARX: Developer's Guide
        • ObjectARX Introductory Concepts
        • Basic Interaction with AutoCAD
        • Custom Objects
        • Advanced Topics
        • ObjectARX Graphics, Geometry, and Boundary Representation Libraries
          • The Graphics Interface Library
          • Visualization
            • Viewports
            • Lighting
              • Light Attenuation
              • Common Light Properties
              • Point Lights
                • Targeted Point Lights
              • Spot Lights
              • Web Lights
              • Distant Lights
            • Materials
            • Advanced Rendering
          • Using the Geometry Library
          • Using the Boundary Representation Library
        • Using COM for ObjectARX Development
      • ObjectARX: Reference Guide
      • ObjectARX: Managed .NET Developer's Guide
      • ObjectARX: Managed .NET Reference Guide
      • ObjectARX: Interoperability Guide
      • ObjectARX: Migration Guide
      • ObjectARX: Release Notes
    • JavaScript
    • AutoCAD Core Console
    Share
    • Email
    • Facebook
    • Twitter
    • LinkedIn
     
     

    Targeted Point Lights

    A targeted point light is a targeted version of point light. It is identical to point light except that you have to provide a target point.

    The following code shows how to setup a simple targetpoint light:

    // To setup a targetpoint light
    AcDbLight pointLight;
    pointLight.setLightType(AcGiDrawable::kPointLight);
    pointLight.setPosition(AcGePoint3d(0,0,5));
    pointLight.setTargetlocation(AcGepoint3d(0,0,0);)
    Parent topic: Point Lights

    Was this information helpful?

    Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Please see the Autodesk Creative Commons FAQ for more information.

    • Privacy Statement
    • Legal Notices & Trademarks
    • Report Noncompliance
    • © 2025 Autodesk Inc. All rights reserved