TrimbleSolutionsCorporation / HeadlessTeklaStructuresExample

This example shows how to use Headless Tekla Structures to interact with model without opening TS UI.
BSD 3-Clause "New" or "Revised" License
14 stars 6 forks source link

Getting Reports from Headless Tekla #2

Closed aditya84u closed 5 years ago

aditya84u commented 5 years ago

Hi, Just got started with the headless, We are able to connect to model query the project properties, write a report of the project properties. But when it comes to publishing reports out of model objects we get a blank file instead. So can you help us in this regard

CarlosHerrero commented 5 years ago

Hello,

Can you confirm that the method you are trying to use and it does not work is myPart.GetReportProperty() or Operation.CreateReportFromSelected() ?

aditya84u commented 5 years ago

Yes Operation. it is.

CarlosHerrero commented 5 years ago

Hello,

Could you share the code you used when calling that method? Dev team informed that it should work.

aditya84u commented 5 years ago

Line of Code used bool test = Tekla.Structures.Model.Operations.Operation.CreateReportFromAll(@"path\350 Advanced Bill.rpt", @"C:\TeklaStructuresModels\MetricModel1\Reports\Test1", "", "", ""); But blank report obtained.

TeklaHeadless

CarlosHerrero commented 5 years ago

Discussion continued in forum.tekla.com