[Solved] Creating curves in TopSolid Draft
Moderators: remi77, jacs, Daniel
[Solved] Creating curves in TopSolid Draft
Hi,
I am trying to create curves using with an API.
I was well succeed in a TopSolid Design document , but in TopSolid Draft document i was not lucky . I recieved the following message: "Public member 'curves' on type 'IDocumentDraft' not found".
Can anyone help me to create curves (lines) in a TopSolid Draft document?
Thanks,
I am trying to create curves using with an API.
I was well succeed in a TopSolid Design document , but in TopSolid Draft document i was not lucky . I recieved the following message: "Public member 'curves' on type 'IDocumentDraft' not found".
Can anyone help me to create curves (lines) in a TopSolid Draft document?
Thanks,
-
- Private First Class
- Posts: 10
- Joined: Mon Jul 02, 2007 11:50 am
- Location: Yambol, Bulgaria
- Contact:
You can use lip macro for everything, that is not directly possible with TopSolid API(v6.8).
C# :
line2p.lip :
C# :
Code: Select all
...
...
TopApp.PushDoubleOnStack(0.0); //z2 point2
TopApp.PushDoubleOnStack(0.07); //y2
TopApp.PushDoubleOnStack(0.07); //x2
TopApp.PushDoubleOnStack(0.0); //z1 point1
TopApp.PushDoubleOnStack(0.2); //y1
TopApp.PushDoubleOnStack(0.15); //x1
TopApp.ExecuteMacroKeepStack(@"C:\Missler\Config\mylip\line2p.lob");
Element line = (Element)TopApp.GetElementFromStack();
TopApp.Synchronize();
...
...
Code: Select all
( Line by 2 points
STK IN :
POINT p2
POINT p1
STK OUT :
LABEL line
REM :
)
CreateLine
; )
- TopSolid2007
- Master Chief
- Posts: 133
- Joined: Thu May 10, 2007 4:28 pm
- Location: São Bernardo do Campo - SP
- Contact:
Bom dia,
What we did was create a C# program.
After create a lip file calling the C# program:
________________________________
(
FUNCTION launch Exe
WHEN WHO WHAT
23/04/06 MJO creation
STK IN :
STK OUT :
)
"c:\misslerV68\config\api\ProgramC.exe " 0 CreateProcess
QuitMacro
________________________________
Then compile the lip file into a lob file.
Then create a line in TopSolid menu to call the lob file:
________________________________
#Men#Program_C {
"#Men#File#Folhas 2D" #0,11,0,1 = $TOPCONFIG/API/ProgramC ;
________________________________
Espero que tenha ajudado
Olaio
What we did was create a C# program.
After create a lip file calling the C# program:
________________________________
(
FUNCTION launch Exe
WHEN WHO WHAT
23/04/06 MJO creation
STK IN :
STK OUT :
)
"c:\misslerV68\config\api\ProgramC.exe " 0 CreateProcess
QuitMacro
________________________________
Then compile the lip file into a lob file.
Then create a line in TopSolid menu to call the lob file:
________________________________
#Men#Program_C {
"#Men#File#Folhas 2D" #0,11,0,1 = $TOPCONFIG/API/ProgramC ;
________________________________
Espero que tenha ajudado
Olaio
-
- Master Corporal
- Posts: 43
- Joined: Fri Apr 29, 2011 7:16 am
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.17
- Location: Hannover
- Contact:
Thx for the good tutorial, but...
can someone explain me where i can get the toplip.exe to generate a .lop file?
-----------------------------------------------------------------
ANSER:
in installing of TopSolid comes the part to choose the modules for install.
there is the Modul "TopLip" not marked to install.
i change this know. thanks for help @ olaio
can someone explain me where i can get the toplip.exe to generate a .lop file?
-----------------------------------------------------------------
ANSER:
in installing of TopSolid comes the part to choose the modules for install.
there is the Modul "TopLip" not marked to install.
i change this know. thanks for help @ olaio
Last edited by Holzknoten on Fri Oct 14, 2011 4:19 pm, edited 2 times in total.
by Holzknoten