uses
Classes, Dialogs;
var
ListOfComponents : IPCsList;
Symbol: IPCsSymbol;
dummy, i : integer;
symbolnames: TStringList;
begin
symbolnames := TStringList.create;
{create a IPCsList of all components in active project}
ListOfComponents := PCsApplication.ActiveDocument.Drawing.Lists.CreateComponentList('');
{running through every item in IPCsList}
for i := 0 to ListOfComponents.Count - 1 do
with ListOfComponents.Item[i] do
begin
GetDataSymbol(0,0,Symbol,dummy);
if Symbol <> NIL then
symbolnames.add(Symbol.Fullname);
end;
symbolnames.Delimiter := #13;
ShowMessage(symbolnames.DelimitedText);
symbolnames.free;
end.
Classes, Dialogs;
var
ListOfComponents : IPCsList;
Symbol: IPCsSymbol;
dummy, i : integer;
symbolnames: TStringList;
begin
symbolnames := TStringList.create;
{create a IPCsList of all components in active project}
ListOfComponents := PCsApplication.ActiveDocument.Drawing.Lists.CreateComponentList('');
{running through every item in IPCsList}
for i := 0 to ListOfComponents.Count - 1 do
with ListOfComponents.Item[i] do
begin
GetDataSymbol(0,0,Symbol,dummy);
if Symbol <> NIL then
symbolnames.add(Symbol.Fullname);
end;
symbolnames.Delimiter := #13;
ShowMessage(symbolnames.DelimitedText);
symbolnames.free;
end.
