Parameter Script/Macro

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, jacs, Daniel

MOLD_4.0
Private
Private
Posts: 7
Joined: Mon May 27, 2019 6:27 am
TopSolid Module: TopSolid'Mold
TopSolid Version: 7.8

Parameter Script/Macro

Unread post by MOLD_4.0 »

Hello, everybody,
can someone explain to me with an example how to use the script function?
Attachments
Unbenannt.JPG
Beco
Private First Class
Private First Class
Posts: 10
Joined: Mon Jul 02, 2007 11:50 am
Location: Yambol, Bulgaria
Contact:

Re: Parameter Script/Macro

Unread post by Beco »

switch-case with Par1: integer TopSolid parameter

Code: Select all

int a = 5;
int b = 10;
int p = Par1;
switch(p/10)
{
	case 1:
		return p * a;
	case 2:
		return p * b;
	default:
		return 100;
}
; )
Post Reply