Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purpose of "headless" and question about TeklaStructuresService.Initalize #1

Open
olszewski-grzegorz opened this issue May 23, 2018 · 4 comments

Comments

@olszewski-grzegorz
Copy link

Hi,

What's the main purpose of HeadlessExample? Is it for starting Tekla from other program? How is this different than opening .exe with bypass.ini configuration file?

I have also a question about fourth argument in TeklaStructuresService.Initalize method. There is a string for a license type. "Viewer", "Drafter" works; what about other types of licenses? I could not find correct phrases.

Thanks for your time :)

@RistoKunnas
Copy link
Contributor

With headless ts, you can embed the ts functionality into your own executable. For example, you can create simple console application to extract information from the model, without teklastructures.exe running.

The license types are the same as here: https://teklastructures.support.tekla.com/2018/en/xs_default_license

@olszewski-grzegorz
Copy link
Author

olszewski-grzegorz commented May 23, 2018

Thanks for response. I am trying to open with "CONSTRUCTION_MODELING" and the result is:
2018-05-23_16h06_21
It seems that it tries to open with developer license (I don't have that).

Phrase from code:
service.Initialize( new DirectoryInfo(@"C:\TeklaStructuresModels\Test_2018"), new FileInfo(@"E:\Programy\Tekla\2018\2018\Environments\norway\env_Norway.ini"), new FileInfo(@"E:\Programy\Tekla\2018\2018\Environments\norway\role_All.ini"), "CONSTRUCTION_MODELING");

@hholder
Copy link

hholder commented May 23, 2018

@Gregi08 I had the same problem. Use the HeadlessExample.ini file to configure the service instead. I added the following lines:
set XS_DEFAULT_ENVIRONMENT=C:\TeklaStructures...\env_US_imperial.ini
set XS_DEFAULT_ROLE=C:\TeklaStructures...\Role_Steel_Detailing.ini
set XS_DEFAULT_LICENSE=CONSTRUCTION_MODELING

@olszewski-grzegorz
Copy link
Author

Your solution works - thanks. Now I see what's the idea behind "Headless" mode :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants