Author Topic: Basic question relating "methods" (Active X)  (Read 985 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 650
Basic question relating "methods" (Active X)
« on: July 27, 2017, 03:05:18 AM »
Dumping an AECC_Sample_Line I get this results:

Code: [Select]
AECC_SAMPLE_LINE
; IAeccSampleLine: IAeccSampleLine-Schnittstelle
; Eigenschaftswerte:
;   Application (RO) = #<VLA-OBJECT IAeccApplication 0000021ee894f890>
;   Description = ""
.....
; Unterstützte Methoden:
;   ArrayPolar (3)
...
;   IntersectWith (2)
...

I could not find any information about the IntersectWith-method for AECC_Sample_Line, but there is the "common" function "vla-IntersectWith". Based on this example my question is:

Are methods always "common" and supported by some /many / all objects, or are they depending on the particular object (so "vla-intersect" is not the same as "AECC_Sample_Line IntersectWith")??

Thanks for basic lessons ;-)
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Basic question relating "methods" (Active X)
« Reply #1 on: July 27, 2017, 10:16:00 AM »
The AEC stuff is derived from base AutoCAD objects, and inherits a number of common properties and methods.  They don't always apply though, so you need the API help for both an object map and details on each.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}