Search found 10 matches

by Beco
Wed Jul 15, 2020 2:59 pm
Forum: Specific Development
Topic: Parameter Script/Macro
Replies: 1
Views: 2067

Re: Parameter Script/Macro

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;
}
by Beco
Fri Aug 10, 2012 8:07 pm
Forum: Specific Development
Topic: Document properties, elements, and LIP
Replies: 3
Views: 7617

Hi,
I have 2 suggestions:

The Properties of document are available through TopSolid API - IDocument interface . Instead of writing a LIP script you can write a VB script for Excel.

If some parts of script cannot be done with TopSolid API - from API you can call LIP script.
by Beco
Sat Feb 25, 2012 11:52 am
Forum: Specific Development
Topic: TopSolid Dialog
Replies: 2
Views: 4310

In TopSolid create new 'Wizard' document - when you add 'dialog node' (Read help for how to do that) - this dialog editor shows up. I don't think it can be used other way.
by Beco
Mon Oct 24, 2011 9:12 am
Forum: Specific Development
Topic: Do you modify your TS? / how to decompile a lob
Replies: 7
Views: 11329

thx for answer. i get the information from support, that every lob-file have also a lip-file in same folder. so i can learn the original code. That is not exactly true. Not all files have source with them. I have ~4100 lob files in my instalation and only ~2600 lip files. There is no lip files in z...
by Beco
Sun Oct 23, 2011 4:44 pm
Forum: Specific Development
Topic: Do you modify your TS? / how to decompile a lob
Replies: 7
Views: 11329

You can read lob files directly. Format is not very complicated. Here is an example with some explanation: testLOB.lip: INT myvarint INT myvarint2 111 myvarint! myvarint? 222 333 + + myvarint2! myvarint2? testLOB.lob: 5 -number of functions used 0 -??? LWnum -1-st used function - in the body of prog...
by Beco
Fri Oct 21, 2011 8:31 pm
Forum: Specific Development
Topic: [solved]Trouble using BOMProperties
Replies: 2
Views: 5269

My code is OK :D
and bug in API was fixed (nobody tells you)
I test on TopSolid 2007 x64 with latest update v.6.8.278
by Beco
Mon Sep 24, 2007 2:12 pm
Forum: Specific Development
Topic: [solved]Trouble using BOMProperties
Replies: 2
Views: 5269

[solved]Trouble using BOMProperties

Hi, When I add following line: IBOMProperties properties = bomLevel1.Properties; to my code it works only once, 2-nd run crash at line getting TopApp. Is this a bug in API, or I do something wrong? C# code: using System; using System.Collections.Generic; using System.Text; using TopSolid; namespace ...
by Beco
Mon Sep 17, 2007 11:48 am
Forum: Suggestions and Enhancements
Topic: Reconnect in draft tree bug
Replies: 0
Views: 2870

Reconnect in draft tree bug

Hi, "reconnect" from tree in draft do not works. It is available for some elements (axes, offset contour,segment) I already have fix for this problem, this is a part of code in file C:\Missler\V68\d\refx\l\tree_modify.lip . . . LABEL drawing . . "$DFT_DRAWING" DWnamtolab drawing! drawing? =L0 If fac...
by Beco
Fri Aug 10, 2007 11:46 am
Forum: Suggestions and Enhancements
Topic: OpenOffice Calc - as a alternative of Excel - request
Replies: 2
Views: 3991

OpenOffice Calc - as a alternative of Excel - request

Hi,
I want to be able to create tables, import, export and link parameters to/from OpenOffice Calc spreadsheet (All functionality that TopSolid have with Excel)
by Beco
Fri Jul 27, 2007 2:05 pm
Forum: Specific Development
Topic: [Solved] Creating curves in TopSolid Draft
Replies: 7
Views: 12637

You can use lip macro for everything, that is not directly possible with TopSolid API(v6.8). C# : ... ... 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); //y...