Customized stencils automation

C

CitizenM

Hi everybody,

I'm using right now personnalized stencils that I open with the "Open"
method.
Everything works fine until the moment I want to automate things.

What I'm willing to do is to automate or simulate the dropping of such
personnalized stencil item onto my drawing, at a designated position.
Every item has its own distinct name.

I went through the SDK but don't know how to do such a thing via code.

Is it only possible ?

Thanks !

Julien
 
P

Paul Herber

Hi everybody,

I'm using right now personnalized stencils that I open with the "Open"
method.
Everything works fine until the moment I want to automate things.

What I'm willing to do is to automate or simulate the dropping of such
personnalized stencil item onto my drawing, at a designated position.
Every item has its own distinct name.

I went through the SDK but don't know how to do such a thing via code.

Is it only possible ?

Thanks !

Julien

here is some code in Delphi (VB, C etc are not too different):

shape := "scUcCLASS";
pagObj := VSL.visApp.ActivePage;
mstObj := theStencilObj.Masters.Item[shape];
shpObj := pagObj.Drop(mstObj, x, y);

where x and y are the coordinates (in inches) as integers
 
C

CitizenM

Yeah, I had found something like this.

Thanks for the answer :D

Paul Herber said:
Hi everybody,

I'm using right now personnalized stencils that I open with the "Open"
method.
Everything works fine until the moment I want to automate things.

What I'm willing to do is to automate or simulate the dropping of such
personnalized stencil item onto my drawing, at a designated position.
Every item has its own distinct name.

I went through the SDK but don't know how to do such a thing via code.

Is it only possible ?

Thanks !

Julien

here is some code in Delphi (VB, C etc are not too different):

shape := "scUcCLASS";
pagObj := VSL.visApp.ActivePage;
mstObj := theStencilObj.Masters.Item[shape];
shpObj := pagObj.Drop(mstObj, x, y);

where x and y are the coordinates (in inches) as integers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top