Saturday, July 08, 2017

Phần mềm Nhập số liệu khảo sát vào Civil 3D


Tính năng của phần mềm

Nhập số lieu khảo sát theo tim tuyến

Phần mềm cho phép rải số lieu khảo sát dọc theo tim tuyến đã có trên Civil 3D. Các định dạng file khảo sát được hỗ trợ bao gồm:
NTD
TEDI
Các định dạng khảo sát khác sẽ được cập nhật trong các phiên bản kế tiếp.

Hướng dẫn sử dung


Phiên bản

1.0.0: Phiên bản đầu tiên

Liên hệ

Nếu có vấn đề trong quá trình sử dung, vui long liên hệ email: hoang.tt@hotmail.com.


Saturday, September 22, 2012

Scroll Zoom problem in MS Word

Scroll Zoom problem in Microsoft Word 2007


I am using Microsoft Mobile Mouse 6000 and the zoom function (by using CTRL + Scroll) did not work normally. What I did to overcome this problem is:

  • Open Control Panel -> Mouse
  • Select Wheel tab,  then select Identify programs that don't scroll correctly...  -> Click Add -> Browse for Microsoft Word -> Click OK -> OK.
  • Now, come back to Ms Word, it will work perfectly.



Tuesday, September 11, 2012

Ms Word 2010 Eq editor hotkeys/shortcuts

Ms Word 2010 Eq editor hotkeys/shortcuts

From:http://www.physicsforums.com/showthread.php?t=474856
1. Common Hotkeys
2. Basic Math Equations
3. Greek letters and symbols
4. Scripts
5. Limits/logs/trig functions
6. Common Character Accents.

1. Common Hotkeys

Code:
Alt+"="             open/close equation editor
ctrl+l              left align
ctrl+e              center align
ctrl+r              Right align
ctrl+j              justify
ctrl+b              bold
ctrl+u              underline
ctrl+i              italic
ctrl+s              save document
ctrl+o              open document
ctrl+c              copy
ctrl+x              cut
ctrl+v              paste
shift+arrow         select text. By letter or symbol
ctrl+shift+arrow    select text. by word or grouping
ctrl+shift+.        increase text size
ctrl+shift+,        decrease text size

The variables x and n can be replaced with words and full equations


2. Basic Math equations

Code:
Exponents
x^n             xn
(x+x)^n         (x+x)n
x^(n+n)         x(n+n)
x^n+n           xn+n

Division
x/n            "x" divided by "n"
(x+x)/n        "x" plus "x" total divided by "n"
x/(n+n)        "x" divided by the sum of "n"+"n"
x/n+n           "x"divided by "n" total plus "n"

Integrals: be sure to type spaces as indicated
\int  x dx             boundless integral over the function x
\int _0^n x dx         integral with bounds zero to n over the function x
\int _0^(n+n) x dx     integral with bounds zero to n plus n all over the function of x
\iint x dx             double integral with no bounds
\iiint  x dx           triple intertal
(I am not sure if you can add bounds to all the integrals
 I would use multiple single integrals for this as shown below)

\int_0^2\pi \int _0^pi \int _0^r r^2 sin \phi dr d\phi d\theta
bounds from 0 to 2(pi), 0 to pi and 0 to r
(this is an integral for a sphere of radius r)
3. Greek letters and symbols commonly used in equations:
Code:
Shortcuts (press space to change to symbol)
\Alpha        A
\alpha        α
\Beta         B
\beta         β
\Delta        Δ
\delta        δ
\partial      ∂
\Gamma        Γ
\gamma        γ
\epsilon      ϵ    
\Epsilon      Ε
\varepsilon   ε
\eta          η
\Eta          H
\theta        θ
\Theta        Θ
\kappa        κ
\Kappa        K
\lambda       λ
\Lambda       Λ
\pi           π
\Pi           Π
\omega        ω
\Omega        Ω
\mu           μ
\Mu           M
\infty        infinity symbol
4. Scripts
Code:
X^n       Xn
X_n       Xn
(I am not sure how to get the ones for elements where the scripts come before)
5. Limits/logs/trig:(type the equation as indicated, include the spaces as they are recognized by Microsoft Word.)
Code:
lim (x->0) x       limit from x to zero subscript for x
log_x n            logx n
sin x              sine function
sin^-1 x           inverse sine function       
cos x              cosine function
cos^-1 x           inverse cosine function
tan x              tangent function
tan^-1 x           inverse tangent function
sinh x             hyperbolic sine function
sinh^-1 x          inverse hyperbolic sine function
cosh x             hyperbolic cosine function
cosh^-1 x          inverse hyperbolic cosine function
tanh x             hyperbolic tangent function
tanh^-1 x          inverse hyperbolic tangent function
6. Common character accents:press space two times to get the accent on said character
Code:
x\hat       x with hat on top
x\dot       x with dot on top
x\ddot      x with two dots on top
x\dddot     x with three dots on top
x\vec       x with vector on top
x\tilde     x with tilde on top

Thursday, December 29, 2011

Use COM Interoperability with .NET


Limitations and Using Interop (COM)
The .NET API does not expose all the functionality of AutoCAD Civil 3D, and it exposes less than the COM API. The following areas are not yet exposed in .NET:

  • Survey
  • Points
  • Surfaces
  • Sites and Parcels
  • Sections
  • Data Bands
  • Labels (except Alignment, Profile and Profile View labels)
In addition, there are some areas in implemented functionality that are not yet complete:

  • Pipes: interference checks (except interference check styles)
  • Corridors:
    • creating new corridors
    • adding baselines to corridors
    • creating or modifying corridor boundaries or masks
    • creating featurelines from polylines
    • computing cut and fill
    • setting the CodeSetStyle
If you require this functionality in your .NET project, you can use the corresponding COM objects.

To use AutoCAD Civil 3D COM APIs from .NET
  1. Create a .NET solution and project.
  2. Select Add Reference from the Project menu or Solution Explorer.
  3. On the COM tab, select the AutoCAD 2011 Type Library and the AutoCAD/ObjectDBX Common 18.0 Type Library.
  4. On the COM tab, selec the AEC Base 6.5 Application Library and the AEC Base 6.5 Object Library.
  5. On the COM tab, select the required Autodesk Civil Engineering 8.0 libraries for the functionality you require (for example, Land and UI Land for Alignments).
  6. Add the Autodesk.AutoCAD.Interop and Autodesk.AECC.Interop.Ui namespaces to your using or Imports statement.
NoteYou may see warnings about types not being found in various Autodesk.AutoCAD.Interop namespaces (warning type 1684). To disable these warnings, enter 1684 under Supress Warnings on the Build tab of the project’s properties.

In case libraries are not showed in the COM tab, they can be loaded by corresponding tlb files:

  • The AutoCAD 2010 type library, acax18enu.tlb, located at :\Program Files\Common Files\Autodesk Shared.
  • The AutoCAD/ObjectDBX Common 18.0 type library, axdb18enu.tlb, located at :\Program Files\Common Files\Autodesk Shared.
  • Autodesk Civil Engineering 8.0 libraries (for example, Land and UI Land), located at :\Program Files\Common Files\Autodesk Shared\Civil Engineering 80\Aecc*.tlb

Thursday, January 27, 2011

Optimizing the loading of AutoCAD .NET applications

Optimizing the loading of AutoCAD .NET applications
http://through-the-interface.typepad.com/through_the_interface/2006/09/optimizing_the_.html

Automatic loading of .NET modules
http://through-the-interface.typepad.com/through_the_interface/2006/09/automatic_loadi.html

Wednesday, January 19, 2011

Sunday, November 21, 2010

Tạo Windows Form trong AutoCAD .Net

Showing a splash-screen from your AutoCAD .NET application

(http://through-the-interface.typepad.com/through_the_interface/2007/06/showing_a_splas.html)

Thanks once again to Viru Aithal for the inspiration behind this post, although I did write most of the code, this time. :-)
Adding a splash screen can give a touch of class to your application, assuming it's done non-intrusively. This post focuses on how best to do so within AutoCAD, and use the time it's displayed to perform initialization for your application.
The first thing you need to do is add a Windows Form to your project:
Splash_screen_1
You should select the standard "Windows Form" type, giving an appropriate name (in this case I've used "SplashScreen", imaginatively enough).
Splash_screen_2
Once this is done, you should set the background for the form to be your preferred bitmap image, by browsing to it from the form's BackgroundImage property:
Splash_screen_3
Now we're ready to add some code. Here's some C# code that shows how to show the splash-screen from the Initialize() method:

using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Prompts; // This is the name of the module

namespace SplashScreenTest
{
  public class Startup : IExtensionApplication
  {
    public void Initialize()
    {
      SplashScreen ss = new SplashScreen();

      // Rather than trusting these properties to be set
      // at design-time, let's set them here
      ss.StartPosition =
        System.Windows.Forms.FormStartPosition.CenterScreen;
      ss.FormBorderStyle =
        System.Windows.Forms.FormBorderStyle.None;
      ss.Opacity = 0.8;
      ss.TopMost = true;
      ss.ShowInTaskbar = false;

      // Now let's disply the splash-screen
      Application.ShowModelessDialog(
        Application.MainWindow,
        ss,
        false
      );
      ss.Update();

      // This is where your application should initialise,
      // but in our case let's take a 3-second nap
      System.Threading.Thread.Sleep(3000);

      ss.Close();
    }
    public void Terminate()
    {
    }
  }
}
Some notes on the code:
  • I used a sample application called "Prompts" - you should change the using directive to refer to your own module name.
  • We're setting a number of properties dynamically (at runtime), rather than stepping through how to set them at design-time.
  • We've set the splash screen to be 80% opaque (or 20% transparent). This is easy to adjust.
  • Some of the additional properties may be redundant, but they seemed sensible to set (at least to me).
Here's the result... I've set up my application to demand-load when I invoke a command, which allowed me to load a DWG first to show off the transparency of the splash-screen (even though the above code doesn't actually define a command - so do expect an "Unknown command" message, if you do exactly the same thing as I have). You may prefer to set the module to load on AutoCAD startup, otherwise.
Splash_screen_4

Update:
Roland Feletic brought it to my attention that this post needed updating for AutoCAD 2010. Thanks, Roland!
I looked into the code, and found that the call to ShowModelessDialog needed changing to this:
      Application.ShowModelessDialog(
        Application.MainWindow.Handle,
        ss,
        false
      );
I also found I had to add an additional assembly reference to PresentationCore (a .NET Framework 3.0 assembly).

Sunday, November 07, 2010

Layer Manager font error - Lỗi hộp thoại Layer Manager (LA)

I had this error and Autodesk Support traced it to my display settings.
I was using Windows Classic Style in Windows XP (Display Properites->Appearance->Windows and buttons). When I switchd to Windows XP Style the Layer Manager opened.
Note that this problem only happened to me with the new modeless Layer Properties Manager ( LAYERDLGMODE = 1 ). I did not get this error when using classic layer manager ( LAYERDLGMODE = 0 ). 

Nói chung  là có thể do Windows Style (display setting) trong Windows. Lỗi này xuất hiện khi biến LAYERDLGMODE = 1, khi đặt LAYERDLGMODE = 0 thì mọi chuyện ổn cả.

Wednesday, November 03, 2010

Khám phá những phím tắt trên Windows 7

(Dân trí) - Nắm bắt những phím tắt trên Windows sẽ giúp người dùng sử dụng máy tính được nhanh chóng thuận tiện hơn. Bài viết dưới đây sẽ giới thiệu một vài phím tắt hữu dụng trên Windows 7 mà có thể bạn chưa biết.

Thành thạo các phím tắt sẽ giúp người dùng không cần phải sử dụng đến chuột để thao tác, điều này giúp làm việc trên máy tính được hiệu quả hơn.

Lưu ý: trong các phím được sử dụng, phím Windows là phím có biểu tượng cửa sổ, nằm giữa 2 phím Ctrl và Alt trên bàn phím.
 

Những phím tắt với chức năng Aero:

Aero là tính năng làm tăng hiệu ứng hiển thị cho Windows, giúp giao diện Windows 7 trở nên bóng bẩy và đẹp mắt hơn, chẳng hạn hiệu ứng thanh taskbar trong suốt, cửa sổ trong suốt…

Tuy nhiên Aero sử dụng khá nhiều tài nguyên trên hệ thống, do vậy, với những máy tính có cấu hình không quá mạnh, Windows sẽ tự động tắt chức năng này.

Trong trường hợp Windows không mặc định kích hoạt chức năng Để kích hoạt chức năng Aero trên Windows, từ desktop, bạn kích chuột phải và chọn Personalize. Từ cửa sổ Personalize hiện ra, bạn chọn 1 trong những kiểu giao diện có sử dụng hiệu ứng Aero từ danh sách.
 

Nếu máy tính đủ khả năng hỗ trợ Aero, bạn sẽ được chuyển về mẫu giao diện mới, và thanh taskbar cũng như thanh tiêu đề các cửa sổ trở nên trong suốt, cũng như xuất hiện thumbnails các cửa sổ đang được mở ở trên taskbar…

Dưới đây là một vài phím tắt của Windows sử dụng hiệu ứng Aero:

- Nhấn tổ hợp phím “Windows” + “Spacebar” (thanh dài) để biến tất cả các cửa sổ trở nên trong suốt.
 

- “Windows” + “Home”: thu nhỏ toàn bộ các cửa sổ, ngoại trừ cửa sổ đang được chọn.

- “Windows” + phím mũi tên trái (tương ứng phải): đưa cửa sổ về một nửa màn hình bên trái (hoặc bên phải). Với cách thức này, bạn có thể đưa 2 cửa sổ nằm song song ở 2 nửa của màn hình, thuận tiện trong việc so sánh hoặc đối chiếu nội dung nào đó.

- “Windows” + phím mũi tên lên (tương ứng xuống): đưa cửa sổ về kích cỡ thu nhỏ hoặc lớn tối đa.

- “Windows” + “Tab”: chuyển đổi cửa sổ để chọn lựa với hiệu ứng 3D. Nhấn phím Tab để lựa chọn.

Những phím tắt tác động lên cửa sổ và thanh Taskbar:

- “Windows” + D (hoặc M): thu nhỏ toàn bộ các cửa sổ đang mở để quay về desktop.

- “Alt” + “Tab”: chuyển đổi các cửa sổ đang mở. Nhấn phím Tab để chọn lựa.

- “Alt” + “Ctrl” + “Tab”: hiển thị danh sách các cửa sổ đang mở. Sử dụng phím mũi tên trái phải để chọn lựa cửa sổ cần sử dụng. Với tổ hợp phím “Alt” + “Tab” ở trên, bạn phải bấm và giữ phím Alt trong quá trình chọn lựa cửa sổ, nhưng với tổ hợp phím này, bạn có thể chỉ sử dụng các phím qua lại để chọn lựa mà không cần giữ các nút khác.
 

- “Windows” + T: di chuyển tới các cửa sổ đang mở trên taskbar. Giữ phím “Windows” và nhấn phím T để di chuyển theo chiều từ trái sang phải. Khi đến được biểu tượng của cửa sổ cần thiết, nhấn Enter để mở cửa sổ đó.

- “Windows” + “Alt” + T: tương tự như trên, nhưng di chuyển theo chiều ngược lại, từ phải sang trái.

- “Windows” + B: chuyển trỏ chuột về mục hiển thị các biểu tượng ẩn trên taskbar. Nhấn Enter hoặc phím Space để hiển thị chúng.
 

- “Windows” + 1 (từ 1 đến 9): kích hoạt các phần mềm được đánh dấu trên taskbar, theo thứ tự từ 1 đến 9 (từ trái qua phải).

- “Windows” + “Alt” + 1 (từ 1 đến 9): mở jump list của các biểu tượng trên Taskbar.
 
Chế độ nhiều màn hình:

Nếu bạn đang sử dụng máy tính với kết nối nhiều màn hình hoặc kết nối giữa laptop và màn hình lcd, kết nối máy chiếu… thì các phím tắt sau đây có thể sẽ hữu dụng.

- “Windows” + “Shift” + phím trái (tương ứng phải): chuyển cửa sổ hiện tại sang màn hình khác.

- “Windows” + P: chọn lựa chế độ hiển thị máy chiếu.
 

Hiệu ứng kính lúp: là hiệu ứng cho phép phóng lớn một vị trí nào đó trên màn hình.

- “Windows” + “+”: kích hoạt hiệu ứng kính lúp. Một hộp thoại hiện ra cho phép bạn chọn lựa khu vực để phóng lớn. Nhấn tiếp tổ hợp phím “Windows” + “+” để tăng mức độ phóng lớn. Nhấn “Windows” + “-“ để thu nhỏ.
 

- “Ctrl” + “Alt” + F: sau khi đã kích hoạt hiệu ứng kính lúp, nhấn tổ hợp phím này để đưa toàn bộ màn hình về hiệu ứng kính lúp.

- “Ctrl” + “Alt” + I: tương tự, nhấn tổ hợp phím này để đưa về hiệu ứng âm bản.

- “Windows” + “Esc”: thoát khỏi hiệu ứng kính lúp và trở lại bình thường.

Trên đây là một vài phím tắt không chỉ hữu ích khi làm việc và thao tác trên máy, mà cũng có thể hữu ích để khám phá thêm các tính năng mới trên Windows 7 mà có thể bạn chưa biết.

Phạm Thế Quang Huy