## Understanding the title block macro in CATIA V5

CATIA gives its users the possibility to use a VBscript macro to generate Title Blocks automatically adjusted to any drawing format. A few macros are provided by default. Users can customize frames and title blocks by either modifying one the default macros or by creating their own macros.

The default macros are stored in the install_root/intel_a/VBScript/FrameTitleBlock directory and have a .CATScript extension. We can specify another location in the Tools > Options > Mechanical Design > Drafting > Layout tab.

A macro is comprised of Sub procedures and functions. When the Insert Frame and Title Block dialog box is displayed, it will show a set of actions predefined in the macro. Those actions are Sub procedures prefixed using CATDwr_.

For instance, the Creation action looks like this:

Sub CATDrw_Creation( targetSheet as CATIABase )
'-------------------------------------------------------------------------------
'How to create the FTB
'-------------------------------------------------------------------------------
If Not CATInit(targetSheet) Then Exit Sub
If CATCheckRef(1) Then Exit Sub 'To check whether a FTB exists already in the sheet
CATCreateReference              'To place on the drawing a reference point
CATFrame                        'To draw the frame
CATCreateTitleBlockFrame        'To draw the geometry
CATTitleBlockText               'To fill in the title block
CATColorGeometry                'To change the geometry color
CATExit targetSheet             'To save the sketch edition
End Sub

Posted in CATIA, VBScript Tagged with: , , ,

## Lap times for the 2014 F1 Singapore Grand Prix

Problems in Rosberg’s car’s wiring loom just before the start of this Grand Prix predicted a troublesome race for the German driver who had to retire after several laps. This handed over a lot of points to his team mate Lewis Hamilton —who enjoyed a clean weekend— in their race for the Driver’s Championship.

This was the best finish of the year for Sebastian Vettel, finishing ahead of team-mate Daniel Ricciardo. The Safety Car played an important strategic role. Until then, Fernando Alonso was holding 2nd place and would have made a podium if he hadn’t got to pit to get on a set of tyres he could run to the end of the race with.

Further back, Kimi Raikkonen got stuck behind Felipe Massa, who used and aggressive three stop strategy to jump ahead of the Finn. On the other hand, Valtteri Bottas had a good chance to finish in the points but the grip on his tyres faded away in the closing stages of the race dropping form P6 to P11.

Jean-Eric Vergne equalled the best result of his career so far with sixth place, but was given five-second penalties on two occasions.

Following, I provide the plots so you may draw your own conclusions.

## Average pace

This plot shows the difference to the average pace of the race winner. That is, the difference to the average lap time, including pit stops.

The steeper the curve, the faster the lap; and as the curves are generated from cumulative sums of lap times, a negative slope implies a lap time which is quicker that the average.

Posted in F1 Tagged with: , , , , ,

## Lap times for the 2014 F1 Italian Grand Prix

Although Hamilton performed a poor start due to problems with his ERS, he managed to snatch the win from Rosberg in the last stages of the race. The Briton decided to close on his team mate who cracked under the pressure making a mistake. This was a clean race between the two without any controversial incident.

The third step on the podium was for Felipe Massa. It’s his first podium this season, and also his first podium with Williams, finishing just ahead of team mate Valtteri Bottas. A great finish for Williams who just surpassed Ferrari in the Team Championship.

A near-disastrous weekend for Ferrari at their home Grand Prix. An engine problem deprived Alonso from finishing this race and Raikkonen brought only two points home —after Magnussen was given a 5-second penalty.

Not quite so bad for Red Bull, placing both drivers in P5 and P6. Vettel was the first of the one-stopping drivers to make his pit stop giving Ricciardo, on fresher tyres, a better chance to overtake his team mate.

Both McLaren drivers made it to the points, even though Magnussen was given a 5-second penalty because he “did not leave enough room for car 77 [Bottas] in turn one and forced him off the track.” This sanction was worth an extra point for Perez, Button and Raikkonen.

Following, I provide the plots so you may draw your own conclusions.

## Average pace

This plot shows the difference to the average pace of the race winner. That is, the difference to the average lap time, including pit stops.

The steeper the curve, the faster the lap; and as the curves are generated from cumulative sums of lap times, a negative slope implies a lap time which is quicker that the average.

Posted in F1 Tagged with: , , , , ,

## Williams FW07

The Williams FW07 was a ground effect Formula One racing car designed by Patrick Head for the 1979 F1 season. It was not the first ground effect Formula One car, a concept that Colin Chapman got working brilliantly in the ’78 and ’79 at Lotus, but it was difficult and expensive to get right, as well as being extremely alienating for many drivers, who had no choice but to scream through corners at insanely high speeds, hoping passionately that nothing would upset the workings of the airflow under the car. According to Niki Lauda [3],

Cornering became a rape practised on the driver. Something really terrible, unnatural and unpredictable.

Posted in Assorted Tagged with: , , ,

## Lap times for the 2014 F1 Belgian Grand Prix

After a rainy qualification, today we could enjoy a sunny Sunday race. But that would no mean to be a parade for Mercedes as the two drivers tangled on the second lap of the race. This damaged Rosberg’s front wing while leaving Hamilton with a puncture that ruined his race.

This led to a great opportunity for Ricciardo to claim his third win of the year. Rosberg and Bottas completed the podium.

Further back, Alonso saw his race compromised by a 5-second penalty because mechanics were still working on his Ferrari when the grid formation lap began. Additional performance issues in Alonso’s car got Raikkonen to finish ahead of his team mate for the first time this season.

Magnussen was given a 20-second penalty after the race for not giving enough space for car 14 and forcing Alonso out of the track. He dropped from sixth to twelfth, taking no points this race. But it was late for Alonso, as he then struggled to stand against Vettel and Button.

Andre Lotterer’s F1 debut ended when his Caterham stopped by the side of the track on his first lap. The same fate befell Lotus’s Pastor Maldonado.

## Average pace

This plot shows the difference to the average pace of the race winner. That is, the difference to the average lap time, including pit stops.

The steeper the curve, the faster the lap; and as the curves are generated from cumulative sums of lap times, a negative slope implies a lap time which is quicker that the average. Read more ›

Posted in F1 Tagged with: , , , ,

## Lap times for the 2014 F1 Hungarian Grand Prix

This race certainly has to stablish Alonso as one of the greatest drivers in F1 history, if not the best. Not that I take away the credit from Hamilton, who also had a splendid race beating his team-mate Nico Rosberg starting from the pit lane, but Alonso has not the best car in the paddock.

Anyway, this was a really interesting race. It might have been another parade for Rosberg and his Mercedes were it not for the downpour just before the race and a couple of accidents —Ericsson first, and Grosjean slightly after while still under the SC— which had the Safety Car released from lap 9 to 13. Some drivers took the opportunity to switch to Soft dry tyres but for Rosberg, Bottas, Vettel and Alonso out front.

A few laps later, the Safety Car was back out when Sergio Perez lost control sliding into the pit wall. At the restart, Fernando Alonso was leader until Ricciardo managed to snatch the lead from the Spaniard with three laps to go. Alonso managed to hold on to a superb second place, while Hamilton secured a scarcely believable third place after starting from the pitlane.

Following, I provide the plots so you may draw your own conclusions.

## Average pace

This plot shows the difference to the average pace of the race winner. That is, the difference to the average lap time, including pit stops.

The steeper the curve, the faster the lap; and as the curves are generated from cumulative sums of lap times, a negative slope implies a lap time which is quicker that the average. Read more ›

Posted in F1 Tagged with: , , , ,

## Ferrari 330 P4

Only three 330 P4s were built, chassis numbers 0856, 0858 and 0860. This 1967 Ferrari 330 P4 (chassis number 0858) was converted for use in the North American Can-Am series after the international regulations were changed at the end of the season. The P4 was modified as a 350 Can-Am with notable features including a smooth front-end devoid of any lights, a more stylised rear spoiler and two air intakes curving outward to the fuel injection trumpets. Drop-dead gorgeous.

Posted in Assorted Tagged with: , , ,

## Lap times for the 2014 F1 German Grand Prix

Not a good race start for Massa who didn’t complete his first lap after another incident in the first stages of a race, this time with Magnussen. Other than that, it was a good weekend for Williams as Bottas secured his third straight podium finish, with Hamilton close behind in P3 but with almost worn out tyres. After a start from P20 following an accident during Q1 and a gearbox change, securing 15 points is a clear indicator of the superiority of Mercedes this year. Even without the FRIC.

Further back, Alonso’s ability to score points race after race and to battle on equal terms with Red Bull’s apparently superior cars shows us why he is one of the greatest drivers in F1 history.

Following, I provide the plots so you may draw your own conclusions.

## Average pace

This plot shows the difference to the average pace of the race winner. That is, the difference to the average lap time, including pit stops. The steeper the curve, the faster the lap; and as the curves are generated from cumulative sums of lap times, a negative slope implies a lap time which is quicker that the average. Read more ›

Posted in F1 Tagged with: , , ,

## Analysis of a lap around Brands Hatch Indy (Pt. I)

I wanted to feel like a race engineer so I went to Twitter and asked for some telemetry data for analysis. I got 3 GB worth of data from different drivers and circuits in a format suitable for MoTeC’s i2 data analysis software.

## The circuit

Data is from a BMW Z4 GT3 racing at the Brands Hatch Indy Circuit, i.e., the short track. The circuit is very simple in layout, it offers a unique combination of fearsome corners and hills, dips and cambers.

Posted in Data Analysis Tagged with: , , , , , ,

## CFD

CFD modelling, also known as Colourful Fluid Dynamics, is much hyped as being able to produce pretty and colourful images, but lacking in substance —Anonymous.

Posted in Assorted Tagged with: , , ,
There are Cookies all over the Internet, and this site couldn't be an exception - By using this site or closing this you agree to receive cookies - You can change your preferences by following this instructions.